X-Git-Url: http://nitlanguage.org diff --git a/tests/base_closure6.nit b/tests/base_closure6.nit index b7b6a7a..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 @@ -47,7 +49,7 @@ var u: U = new U var v: V = new V var w: W = new W -var y: Object +var y: Object#!alt1# #alt1#var y: U y = a.foo !bar do 0.output y = a.foo !bar do break 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