nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gamnit: add server discovery or create example
[nit.git]
/
tests
/
base_new.nit
diff --git
a/tests/base_new.nit
b/tests/base_new.nit
index
8fdf39a
..
d36a68b
100644
(file)
--- 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