syntax: comparing a variable with null makes it evolve to null
[nit.git] / tests / base_closure_default1.nit
index 0210965..560e2cd 100644 (file)
 import kernel
 
 class A
-       meth foo
-               with bar do
+       fun foo
+               !bar do
                        #alt1# return
                        #alt2# return 1
                        #alt3# abort
                        #alt4# continue
                        #alt5# continue 20
+                       #alt6# break
+                       #alt7# break 1
                        20.output
                end
        do
@@ -35,7 +37,7 @@ end
 
 var a = new A
 0.output
-a.foo with do 2.output
+a.foo !bar do 2.output
 0.output
 a.foo
 0.output