update NOTICE and LICENSE
[nit.git] / tests / base_closure_default4.nit
index 1209c18..cd4f409 100644 (file)
@@ -19,12 +19,14 @@ import kernel
 class A
        fun foo
                !bar(i: Int): Int do
+                       if maybe then
                        #alt1# return
                        #alt2# return -1
                        #alt3# abort
                        #alt4# continue
                        #alt6# break
                        #alt7# break 1
+                       end
                        continue (i * 10) #!alt5#
                end
        do
@@ -34,6 +36,8 @@ class A
        end
 end
 
+fun maybe: Bool do return true
+
 var a = new A
 0.output
 a.foo !bar j do continue j