Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / base_isa_cast2.nit
index ca13a66..7517281 100644 (file)
@@ -21,8 +21,8 @@ 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
@@ -41,7 +41,7 @@ end
 if not a isa B then
        #alt4#a.foo(-4)
        a = new B
-       assert a isa B
+
        a.foo(3)
 end
 a.foo(4)
@@ -56,7 +56,7 @@ end
 while not a isa B do
        #alt7#a.foo(-7)
        a = new B
-       assert a isa B
+
        a.foo(6)
 end
 #alt8#a.foo(7)