manual: CI check with nitunit
[nit.git] / tests / base_new.nit
index 8fdf39a..d36a68b 100644 (file)
@@ -49,6 +49,11 @@ class C
        end
 end
 
+class D
+       super C
+       new(z: Bool): B do return new C(1111)
+end
+
 redef class Int
        new z do return 0
        new a: A do return new A
@@ -79,6 +84,10 @@ end
 
 '\n'.output
 
+(new D(true)).output
+
+'\n'.output
+
 #alt8#(new Int).output
 (new Int.z).output
 (new Int.a).output