nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: fix base_inline
[nit.git]
/
tests
/
test_gen.nit
diff --git
a/tests/test_gen.nit
b/tests/test_gen.nit
index
93718dc
..
698ad20
100644
(file)
--- a/
tests/test_gen.nit
+++ b/
tests/test_gen.nit
@@
-24,11
+24,11
@@
class Toto[E]
redef fun to_s: String
do return _item.to_s end
redef fun to_s: String
do return _item.to_s end
- init do end
+ init(e:E) do _item = e
end
class TestNative
end
class TestNative
-special ArrayCapable[Int]
+ super ArrayCapable[Int]
init
do
init
do
@@
-51,7
+51,7
@@
end
fun test_toto
do
fun test_toto
do
- var t = new Toto[Int]
+ var t = new Toto[Int](1)
t.set(5)
print(t)
end
t.set(5)
print(t)
end