Merge: Robust Virtual Type
authorJean Privat <jean@pryen.org>
Thu, 29 Oct 2015 19:04:00 +0000 (15:04 -0400)
committerJean Privat <jean@pryen.org>
Thu, 29 Oct 2015 19:04:00 +0000 (15:04 -0400)
commit10f8a25dd8f87faa15896bb77f1908b9bf6f4864
treed189c756d706e32132f8b83be47a1ed0cb0a7de8
parent5e73758c5c405765dab6631a43d72e9761ff945d
parentc7e351e266887769105b0613d8a3fa815c0a2c37
Merge: Robust Virtual Type

Improve the handling of inconsistent model when virtual types are badly defined.

The changes are mainly done with 2 things:

* still register broken `type` definition in the property, so that properties have at least a definition
* use bottom type (also called the absurd type) to indicate inconsistency in the model (instead of aborting)

Reported-by: @Morriar

Pull-Request: #1791
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>