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