scope: refuse `&x` where x is a local variable
[nit.git] / tests / icode_dmr_inh.nit
index 02a1752..f2f4e22 100644 (file)
@@ -5,7 +5,7 @@ class B
 end
 
 class A
-special B
+       super B
        redef fun foo do
                print "afoo"
        end
@@ -16,5 +16,5 @@ var o: B
 #alt2#o = new B
 #alt3#o = new B
 #alt3#o.foo
-o = new A#!alt2#
+o = new A#alt2#
 o.foo