update NOTICE and LICENSE
[nit.git] / tests / base_closure_default3.nit
index 9b413bc..91a4149 100644 (file)
@@ -19,10 +19,14 @@ import kernel
 class A
        fun foo
                !bar: Int do
+                       if maybe then
                        #alt1# return
                        #alt2# return 1
                        #alt3# abort
                        #alt4# continue
+                       #alt6# break 1
+                       end
+                       #alt5# break
                        continue 20 #!alt5#
                end
        do
@@ -32,6 +36,8 @@ class A
        end
 end
 
+fun maybe: Bool do return true
+
 var a = new A
 0.output
 a.foo !bar do continue 2