nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools: remove all option to the compiler
[nit.git]
/
tests
/
base_closure_default3.nit
diff --git
a/tests/base_closure_default3.nit
b/tests/base_closure_default3.nit
index
522b39c
..
91a4149
100644
(file)
--- a/
tests/base_closure_default3.nit
+++ b/
tests/base_closure_default3.nit
@@
-17,12
+17,16
@@
import kernel
class A
import kernel
class A
- meth foo
- with bar: Int do
+ fun foo
+ !bar: Int do
+ if maybe then
#alt1# return
#alt2# return 1
#alt3# abort
#alt4# continue
#alt1# return
#alt2# return 1
#alt3# abort
#alt4# continue
+ #alt6# break 1
+ end
+ #alt5# break
continue 20 #!alt5#
end
do
continue 20 #!alt5#
end
do
@@
-32,9
+36,11
@@
class A
end
end
end
end
+fun maybe: Bool do return true
+
var a = new A
0.output
var a = new A
0.output
-a.foo with do continue 2
+a.foo !bar do continue 2
0.output
a.foo
0.output
0.output
a.foo
0.output