update NOTICE and LICENSE
[nit.git] / tests / base_closure_default1.nit
index 560e2cd..ffe3698 100644 (file)
@@ -19,6 +19,7 @@ import kernel
 class A
        fun foo
                !bar do
+                       if maybe then
                        #alt1# return
                        #alt2# return 1
                        #alt3# abort
@@ -26,6 +27,7 @@ class A
                        #alt5# continue 20
                        #alt6# break
                        #alt7# break 1
+                       end
                        20.output
                end
        do
@@ -35,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