update NOTICE and LICENSE
[nit.git] / tests / base_closure_raf.nit
index 01e49c0..1bed473 100644 (file)
 import base_closure2
 
 class B
-special A
-       redef meth foo
-               with bar(i: Int) #!alt13# #!alt14# #!alt15#
-               #alt13# with bar
-               #alt14# with bar(b: Bool)
-               #alt15# with bar(i: Int): Int
+       super A
+       redef fun foo
+               !bar(i: Int) #!alt13# #!alt14# #!alt15#
+               #alt13# !bar
+               #alt14# !bar(b: Bool)
+               #alt15# !bar(i: Int): Int
        do
                10.output
                bar(20) #!alt1#
@@ -33,18 +33,20 @@ special A
        end
 end
 
-meth work2
+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
+               if maybe then
                #alt4#break
                #alt5#break 'x'
                #alt6#continue
                #alt7#continue 'x'
                #alt8#return
                #alt9#return 'x'
+               end
                (x+1).output
        end
        #alt10# a.foo