Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
break
end
if p.mclassdef.mclass == mclassdef.mclass then
- # Still a warning to pass existing bad code
- modelbuilder.warning(n_type, "refine-type", "Redef Error: a virtual type cannot be refined.")
+ modelbuilder.error(n_type, "Redef Error: a virtual type cannot be refined.")
break
end
if not modelbuilder.check_subtype(n_type, mmodule, anchor, bound, supbound) then
end
var c = new B
-#alt1# c.e = new T
c.e = new U
c.e.foo
base_virtual_type4.nit:20,16: Redef Error: a virtual type cannot be refined.
-1
+++ /dev/null
-alt/base_virtual_type4_alt1.nit:20,16: Redef Error: a virtual type cannot be refined.
-alt/base_virtual_type4_alt1.nit:24,7--11: Type Error: expected `nullable U`, got `T`.