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_break_default2.nit
diff --git
a/tests/base_closure_break_default2.nit
b/tests/base_closure_break_default2.nit
index
174cc23
..
36a3a5f
100644
(file)
--- a/
tests/base_closure_break_default2.nit
+++ b/
tests/base_closure_break_default2.nit
@@
-19,6
+19,7
@@
import kernel
class A
fun foo: Int
break !bar do
class A
fun foo: Int
break !bar do
+ if maybe then
#alt1# return
#alt2# return 1
#alt3# abort
#alt1# return
#alt2# return 1
#alt3# abort
@@
-27,15
+28,19
@@
class A
#alt6# break
#alt7# break 1
#alt8# break 'x'
#alt6# break
#alt7# break 1
#alt8# break 'x'
+ end
break 20#!alt9#
end
do
1.output
break 20#!alt9#
end
do
1.output
- bar
+ if maybe then bar
3.output
3.output
+ return 3
end
end
end
end
+fun maybe: Bool do return true
+
var a = new A
0.output
var x = a.foo !bar do break 2
var a = new A
0.output
var x = a.foo !bar do break 2