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_default2.nit
diff --git
a/tests/base_closure_default2.nit
b/tests/base_closure_default2.nit
index
ce6f476
..
dd43e5d
100644
(file)
--- a/
tests/base_closure_default2.nit
+++ b/
tests/base_closure_default2.nit
@@
-19,11
+19,15
@@
import kernel
class A
fun foo
!bar(i: Int) do
class A
fun foo
!bar(i: Int) do
+ if maybe then
#alt1# return
#alt2# return 1
#alt3# abort
#alt4# continue
#alt5# continue 20
#alt1# return
#alt2# return 1
#alt3# abort
#alt4# continue
#alt5# continue 20
+ #alt7# break
+ #alt8# break 1
+ end
(i * 10).output
end
do
(i * 10).output
end
do
@@
-34,6
+38,8
@@
class A
end
end
end
end
+fun maybe: Bool do return true
+
var a = new A
0.output
a.foo !bar j do j.output
var a = new A
0.output
a.foo !bar j do j.output