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_inline_closure_fork2.nit
diff --git
a/tests/base_inline_closure_fork2.nit
b/tests/base_inline_closure_fork2.nit
index
21c109b
..
f6a4f6e
100644
(file)
--- a/
tests/base_inline_closure_fork2.nit
+++ b/
tests/base_inline_closure_fork2.nit
@@
-30,6
+30,8
@@
class B
redef fun output do _b.output
end
redef fun output do _b.output
end
+fun maybe: Bool do return true
+
var a = new Inline__
a.foo !f do
var x = new B(1)
var a = new Inline__
a.foo !f do
var x = new B(1)
@@
-39,10
+41,12
@@
a.foo !f do
y.output
x = new B(3)
y = 4
y.output
x = new B(3)
y = 4
+ if maybe then
#alt1#break label l1
#alt2#break label l2
#alt3#continue label l1
#alt4#continue label l2
#alt1#break label l1
#alt2#break label l2
#alt3#continue label l1
#alt4#continue label l2
+ end
end label l1
x.output
y.output
end label l1
x.output
y.output