X-Git-Url: http://nitlanguage.org diff --git a/tests/base_closure_default3.nit b/tests/base_closure_default3.nit index 522b39c..4cab9a2 100644 --- a/tests/base_closure_default3.nit +++ b/tests/base_closure_default3.nit @@ -17,13 +17,17 @@ import kernel class A - meth foo - with bar: Int do + fun foo + !bar: Int do + if maybe then #alt1# return #alt2# return 1 #alt3# abort #alt4# continue - continue 20 #!alt5# + #alt6# break 1 + end + #alt5# break + continue 20 #alt5# end do 1.output @@ -32,9 +36,11 @@ class A end end +fun maybe: Bool do return true + var a = new A 0.output -a.foo with do continue 2 +a.foo !bar do continue 2 0.output a.foo 0.output