nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update NOTICE and LICENSE
[nit.git]
/
tests
/
base_closure_multi.nit
diff --git
a/tests/base_closure_multi.nit
b/tests/base_closure_multi.nit
index
743a3cf
..
65df401
100644
(file)
--- a/
tests/base_closure_multi.nit
+++ b/
tests/base_closure_multi.nit
@@
-15,35
+15,35
@@
# limitations under the License.
import kernel
# limitations under the License.
import kernel
-
-meth a
- with a1
- with a2 #!alt1#
-#alt2# with a3
+fun a
+ !a1
+ !a2 #!alt1#
+#alt2# !a3
+#alt6# !a1
do
a1
a2 #!alt1#
#alt2# a3
end
do
a1
a2 #!alt1#
#alt2# a3
end
-meth b
- with b1
- with b2
+fun b
+ !b1
+ !b2
do
b1
b2
end
do
b1
b2
end
-meth c
- with c1
+fun c
+ !c1
do
c1
end
do
c1
end
-meth d
- with d1
- with d2
- with d3
+fun d
+ !d1
+ !d2
+ !d3
do
d1
d2
do
d1
d2
@@
-51,23
+51,26
@@
do
end
0.output
end
0.output
-a with do
- b with do
+a !a1 do
+ b !b1 do
1.output
1.output
- with do #!alt3#
+ !b2 do #!alt3#
2.output #!alt3#
2.output #!alt3#
-#alt4# with do
+#alt4# !b3 do
#alt4# 20.output
end
#alt4# 20.output
end
-with do
+!a2 do
3.output
end
4.output
3.output
end
4.output
-c with do
- d with do
+c !c1 do
+ d !d1 do
5.output
5.output
- with do
+ !d2 do
6.output
6.output
- with do 7.output
+ !d3 do 7.output
end
end
+#alt5#a !a2 do
+#alt5#!a1 do
+#alt5#end
8.output
8.output