nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version: v0.4.1-git
[nit.git]
/
tests
/
base_closure_raf.nit
diff --git
a/tests/base_closure_raf.nit
b/tests/base_closure_raf.nit
index
64a513c
..
1bed473
100644
(file)
--- a/
tests/base_closure_raf.nit
+++ b/
tests/base_closure_raf.nit
@@
-17,12
+17,12
@@
import base_closure2
class B
import base_closure2
class B
-special A
+ super A
redef fun foo
redef fun foo
- with bar(i: Int) #!alt13# #!alt14# #!alt15#
- #alt13# with bar
- #alt14# with bar(b: Bool)
- #alt15# with bar(i: Int): Int
+ !bar(i: Int) #!alt13# #!alt14# #!alt15#
+ #alt13# !bar
+ #alt14# !bar(b: Bool)
+ #alt15# !bar(i: Int): Int
do
10.output
bar(20) #!alt1#
do
10.output
bar(20) #!alt1#
@@
-36,15
+36,17
@@
end
fun work2
do
var a: A = new B
fun work2
do
var a: A = new B
- a.foo with x do #!alt11#
- #alt11#a.foo with do
+ a.foo !bar x do #!alt11#
+ #alt11#a.foo !bar do
x.output
x.output
+ if maybe then
#alt4#break
#alt5#break 'x'
#alt6#continue
#alt7#continue 'x'
#alt8#return
#alt9#return 'x'
#alt4#break
#alt5#break 'x'
#alt6#continue
#alt7#continue 'x'
#alt8#return
#alt9#return 'x'
+ end
(x+1).output
end
#alt10# a.foo
(x+1).output
end
#alt10# a.foo