From 99c4f96c79c7acad23eae4f8dd260ed913e27b97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Fri, 9 Jun 2017 13:08:04 -0400 Subject: [PATCH] modelize_class: Minimize the context used to resolve supertypes 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modelize/modelize_class.nit b/src/modelize/modelize_class.nit index 22cd001..5cf3e20 100644 --- a/src/modelize/modelize_class.nit +++ b/src/modelize/modelize_class.nit @@ -269,7 +269,8 @@ redef class ModelBuilder for nsc in nclassdef.n_superclasses do specobject = false var ntype = nsc.n_type - var mtype = resolve_mtype_unchecked(mclassdef, ntype, false) + var mtype = resolve_mtype3_unchecked(mmodule, mclass, null, + ntype, false) if mtype == null then continue # Skip because of error if not mtype isa MClassType then error(ntype, "Error: supertypes cannot be a formal type.") -- 1.7.9.5