X-Git-Url: http://nitlanguage.org diff --git a/tests/base_new.nit b/tests/base_new.nit index 8fdf39a..d36a68b 100644 --- a/tests/base_new.nit +++ b/tests/base_new.nit @@ -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