X-Git-Url: http://nitlanguage.org diff --git a/tests/base_closure6.nit b/tests/base_closure6.nit index 5dd96dd..f9ecb67 100644 --- a/tests/base_closure6.nit +++ b/tests/base_closure6.nit @@ -28,18 +28,20 @@ class T end class U -special T + super T end class V -special T + super T end class W -special U -special V + super U + super V end +fun maybe: Bool do return true + var a = new A var t: T = new T @@ -55,13 +57,22 @@ y = a.foo !bar do break u y = a.foo !bar do break v y = a.foo !bar do break w y = a.foo !bar do + if maybe then break t + else if maybe then break u + else if maybe then break v + else if maybe then break w + end end y = a.foo !bar do + if maybe then break u + else if maybe then break v + else if maybe then break w + end end