Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
if mclassdef.is_intro and objectclass != null then
if mclass.kind == extern_kind and mclass.name != "Pointer" then
# it is an extern class, but not a Pointer
+ if pointerclass == null then
+ error(nclassdef, "Error: `Pointer` must be defined first.")
+ return
+ end
if specpointer then supertypes.add pointerclass.mclass_type
else if specobject then
if mclass.name != "Object" then
--- /dev/null
+alt/test_object_class_kind_alt4.nit:21,14--19: Error: `Pointer` must be defined first.