compiler: handle multi-iterators
[nit.git] / tests / bench_send.nit
index 5659ee1..0937117 100644 (file)
@@ -44,8 +44,11 @@ class A
        end
        fun baz
        do
+               i += 1
        end
 
+       var i = 0
+
        init
        do
        end
@@ -101,7 +104,12 @@ var i = 0
 var n = 10
 if args.not_empty then n = args.first.to_i
 
-while i < 1.lshift(n) do
+while i < 1 << n do
        a.hop(b, c, d)
        i = i + 1
 end
+
+print a.i
+print b.i
+print c.i
+print d.i