update NOTICE and LICENSE
[nit.git] / tests / base_closure7.nit
index 56b3c70..8718d19 100644 (file)
@@ -16,8 +16,8 @@
 
 import kernel
 
-meth repeat(x: Int)
-       with each(i: Int)
+fun repeat(x: Int)
+       !each(i: Int)
 do
        var c = 0
        while c < x do
@@ -26,11 +26,11 @@ do
        end
 end
 
-meth work
+fun work
 do
-       repeat(4) with i do
+       repeat(4) !each i do
                i.output
-               repeat(4) with j do
+               repeat(4) !each j do
                        if i == 1 and j == 1 then continue
                        if i == 2 and j == 2 then break
                        if i == 3 and j == 3 then return