nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitdoc: update Makefile
[nit.git]
/
tests
/
base_closure7.nit
diff --git
a/tests/base_closure7.nit
b/tests/base_closure7.nit
index
56b3c70
..
8718d19
100644
(file)
--- a/
tests/base_closure7.nit
+++ b/
tests/base_closure7.nit
@@
-16,8
+16,8
@@
import kernel
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
do
var c = 0
while c < x do
@@
-26,11
+26,11
@@
do
end
end
end
end
-meth work
+fun work
do
do
- repeat(4) with i do
+ repeat(4) !each i do
i.output
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
if i == 1 and j == 1 then continue
if i == 2 and j == 2 then break
if i == 3 and j == 3 then return