From 7dd7eac817d7544feb8a99668eec451a8a24bec3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Fri, 9 Jun 2017 13:09:14 -0400 Subject: [PATCH 1/1] modelize_class: Continue supertype collection after an invalid supertype MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Christophe Beaupré --- src/modelize/modelize_class.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modelize/modelize_class.nit b/src/modelize/modelize_class.nit index 5cf3e20..1e82fb6 100644 --- a/src/modelize/modelize_class.nit +++ b/src/modelize/modelize_class.nit @@ -274,7 +274,7 @@ redef class ModelBuilder if mtype == null then continue # Skip because of error if not mtype isa MClassType then error(ntype, "Error: supertypes cannot be a formal type.") - return + continue end if not mclass.kind.can_specialize(mtype.mclass.kind) then error(ntype, "Error: {mclass.kind} `{mclass}` cannot specialize {mtype.mclass.kind} `{mtype.mclass}`.") -- 1.7.9.5