update NOTICE and LICENSE
[nit.git] / tests / base_closure_default1.nit
index dc5bbbb..ffe3698 100644 (file)
@@ -19,11 +19,15 @@ import kernel
 class A
        fun foo
                !bar do
+                       if maybe then
                        #alt1# return
                        #alt2# return 1
                        #alt3# abort
                        #alt4# continue
                        #alt5# continue 20
+                       #alt6# break
+                       #alt7# break 1
+                       end
                        20.output
                end
        do
@@ -33,6 +37,8 @@ class A
        end
 end
 
+fun maybe: Bool do return true
+
 var a = new A
 0.output
 a.foo !bar do 2.output