From 5e0be35910462db3b0f4f9d38819f65b12b45328 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 9 Aug 2016 11:13:28 -0400 Subject: [PATCH] model: new class MErrorType as using MBottomType was abuse Signed-off-by: Jean Privat --- src/model/model.nit | 38 +++++++++++++++++++++++++++++------- src/modelize/modelize_property.nit | 4 +++- src/semantize/typing.nit | 2 +- 3 files changed, 35 insertions(+), 9 deletions(-) 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}