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_closure4.nit
diff --git
a/tests/base_closure4.nit
b/tests/base_closure4.nit
index
4d13fe8
..
2db8de7
100644
(file)
--- a/
tests/base_closure4.nit
+++ b/
tests/base_closure4.nit
@@
-18,7
+18,7
@@
import kernel
class A
fun foo
- with bar: Int
+ !bar: Int
do
1.output
bar.output #!alt1#
@@
-31,8
+31,8
@@
end
fun work
do
var a = new A
- a.foo with do #!alt11#
- #alt11#a.foo with x do
+ a.foo !bar do #!alt11#
+ #alt11#a.foo !bar x do
2.output
#alt4#break
#alt5#break 'x'