Merge: tests: Test result update for `curl_http`
[nit.git] / tests / base_isa_cast4.nit
index 9104a90..252e691 100644 (file)
@@ -21,12 +21,12 @@ 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
 
-meth maybe: Bool do return true
+fun maybe: Bool do return true
 
 var a: A = new B
 
@@ -40,7 +40,7 @@ end
 #alt1#a.foo(1)
 
 a = new B
-assert a isa B
+
 a.foo(2)
 if maybe then
 else
@@ -49,7 +49,7 @@ end
 #alt2#a.foo(2)
 
 a = new B
-assert a isa B
+
 a.foo(3)
 if maybe then
        a = new A
@@ -58,7 +58,7 @@ end
 #alt3#a.foo(3)
 
 a = new B
-assert a isa B
+
 a.foo(4)
 if maybe then
 else
@@ -66,7 +66,7 @@ end
 a.foo(4)
 
 a = new B
-assert a isa B
+
 a.foo(5)
 if maybe then
        a = new A
@@ -74,14 +74,14 @@ end
 #alt4#a.foo(5)
 
 a = new B
-assert a isa B
+
 a.foo(6)
 if maybe then
 end
 a.foo(6)
 
 a = new B
-assert a isa B
+
 a.foo(7)
 while not maybe do
        #alt5#a = new A
@@ -89,7 +89,7 @@ end
 a.foo(7)
 
 a = new B
-assert a isa B
+
 a.foo(8)
 while not maybe do
 end