syntax: merge nullable information on type evolution
[nit.git] / tests / base_closure_default2.nit
index e420327..a8d7251 100644 (file)
@@ -18,12 +18,14 @@ import kernel
 
 class A
        fun foo
-               with bar(i: Int) do
+               !bar(i: Int) do
                        #alt1# return
                        #alt2# return 1
                        #alt3# abort
                        #alt4# continue
                        #alt5# continue 20
+                       #alt7# break
+                       #alt8# break 1
                        (i * 10).output
                end
        do
@@ -36,7 +38,7 @@ end
 
 var a = new A
 0.output
-a.foo with j do j.output
+a.foo !bar j do j.output
 0.output
 a.foo
 0.output