nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitdoc: disable an `assert` broken by recent merges
[nit.git]
/
tests
/
base_label_closure3.nit
diff --git
a/tests/base_label_closure3.nit
b/tests/base_label_closure3.nit
index
faafed4
..
d0eb8ba
100644
(file)
--- a/
tests/base_label_closure3.nit
+++ b/
tests/base_label_closure3.nit
@@
-17,34
+17,38
@@
import kernel
fun foo
import kernel
fun foo
- with bar do end
- with baz do end
+ !bar do end
+ !baz do end
do
bar
baz
end
do
bar
baz
end
+fun maybe: Bool do return true
+
1.output
1.output
-foo with do
+foo !bar do
2.output
2.output
- foo with do
+ foo !bar do
3.output
3.output
- foo with do end label l3
+ foo !bar do end label l3
+ if maybe then
#alt1#break label l2
#alt2#break label l3
#alt3#break label l4
#alt4#break
#alt5#continue label l1
#alt1#break label l2
#alt2#break label l3
#alt3#break label l4
#alt4#break
#alt5#continue label l1
- break label l1
+ end
+ if maybe then break label l1
4.output
4.output
- with do
+ !baz do
40.output
40.output
- end label l2#!alt6#
+ end label l2#alt6#
#alt6#end label l1
5.output
#alt6#end label l1
5.output
-with do
+!baz do
50.output
end label l1
6.output
50.output
end label l1
6.output
-#alt7#foo with do end label l1
+#alt7#foo !bar do end label l1