tests.sh: use `todo` files to store magic strings
[nit.git] / tests / bench_send2.nit
index 3e8853e..a4f53ad 100644 (file)
@@ -18,8 +18,9 @@ redef class Object
        fun foo do end
 end
 class A
-       redef fun foo do end
+       redef fun foo do i += 1 end
        init do end
+       var i = 0
 end
 class B
        super A
@@ -72,3 +73,6 @@ for i in [0..1.lshift(n)[ do
        end
 end
 
+for j in [0..nb[ do
+       print a[j].as(A).i
+end