From: Jean Privat Date: Tue, 9 Aug 2016 15:13:28 +0000 (-0400) Subject: model: new class MErrorType as using MBottomType was abuse X-Git-Url: http://nitlanguage.org model: new class MErrorType as using MBottomType was abuse Signed-off-by: Jean Privat --- diff --git a/src/model/model.nit b/src/model/model.nit index 0357df2..49f4171 100644 --- a/src/model/model.nit +++ b/src/model/model.nit @@ -835,14 +835,14 @@ abstract class MType end #print "4.is {sub} a {sup}? <- no more resolution" - if sub isa MBottomType then + if sub isa MBottomType or sub isa MErrorType then return true end assert sub isa MClassType else print_error "{sub}