update NOTICE and LICENSE
[nit.git] / tests / base_label_closure3.nit
index faafed4..46877d7 100644 (file)
 import kernel
 
 fun foo
-       with bar do end
-       with baz do end
+       !bar do end
+       !baz do end
 do
        bar
        baz
 end
 
+fun maybe: Bool do return true
+
 1.output
-foo with do
+foo !bar do
        2.output
-       foo with do
+       foo !bar do
                3.output
-               foo with do end label l3
+               foo !bar do end label l3
+               if maybe then
                #alt1#break label l2
                #alt2#break label l3
                #alt3#break label l4
                #alt4#break
                #alt5#continue label l1
-               break label l1
+               end
+               if maybe then break label l1
                4.output
-       with do
+       !baz do
                40.output
        end label l2#!alt6#
        #alt6#end label l1
        5.output
-with do
+!baz do
        50.output
 end label l1
 6.output
 
-#alt7#foo with do end label l1
+#alt7#foo !bar do end label l1