nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parser: closure syntax use '!' instead of 'with'
[nit.git]
/
tests
/
base_closure8.nit
diff --git
a/tests/base_closure8.nit
b/tests/base_closure8.nit
index
9895978
..
83441b0
100644
(file)
--- a/
tests/base_closure8.nit
+++ b/
tests/base_closure8.nit
@@
-18,14
+18,15
@@
import kernel
class A
fun foo(i: Int)
class A
fun foo(i: Int)
- with bar
+ !bar
do
'['.output
i.output
do
'['.output
i.output
- bar with do
+ bar !break do
'!'.output
i.output
end
'!'.output
i.output
end
+ #alt4#bar !baz do abort
']'.output
i.output
end
']'.output
i.output
end
@@
-35,9
+36,9
@@
fun start
do
var a = new A
0.output
do
var a = new A
0.output
- a.foo(1) with do
+ a.foo(1) !bar do
2.output
2.output
- a.foo(3) with do
+ a.foo(3) !bar do
4.output
#alt1#break
#alt2#continue
4.output
#alt1#break
#alt2#continue