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_closure5.nit
diff --git
a/tests/base_closure5.nit
b/tests/base_closure5.nit
index
1cce7b4
..
7e4edaf
100644
(file)
--- a/
tests/base_closure5.nit
+++ b/
tests/base_closure5.nit
@@
-18,7
+18,7
@@
import kernel
class A
fun foo: Int
- with bar: Int
+ !bar: Int
do
1.output
var r = bar
@@
-30,7
+30,7
@@
end
fun work: Int
do
var a = new A
- var i = a.foo with do
+ var i = a.foo !bar do
2.output
#alt1#break
#alt2#break 'x'