X-Git-Url: http://nitlanguage.org diff --git a/tests/test_gen.nit b/tests/test_gen.nit index 698ad20..019f202 100644 --- a/tests/test_gen.nit +++ b/tests/test_gen.nit @@ -16,7 +16,7 @@ class Toto[E] - var _item: E + var item: E fun set(e: E) do _item = e end fun get: E @@ -28,7 +28,7 @@ class Toto[E] end class TestNative - super ArrayCapable[Int] + init do @@ -39,7 +39,7 @@ do a[1] = 2 print(a[0]) print(a[1]) - b = calloc_array(5) + b = new NativeArray[Int](5) b[0]=200 b[1]=300 print(b[0])