update NOTICE and LICENSE
[nit.git] / tests / base_isa_cast2.nit
index 4bccc58..782277e 100644 (file)
@@ -21,11 +21,11 @@ class A
 end
 
 class B
-special A
-       meth foo(i: Int) do i.output
+       super A
+       fun foo(i: Int) do i.output
        init do end
 end
-
+var a0: A = new B
 var a: A = new B
 if a isa B then
        a.foo(1)
@@ -44,10 +44,10 @@ if not a isa B then
        assert a isa B
        a.foo(3)
 end
-#alt8#a.foo(4)
-
+a.foo(4)
+a = a0
 while a isa B do
-       #alt8#a.foo(5)
+       a.foo(5)
        a = new A
        #alt5#a.foo(-5)
 end