# limitations under the License.
var i = [4, '4']
+i.first.output
var toto: Int
var toto: Object
end
+
+var a = new A
+a.toto.output
_toto = 't'
end
end
+
+var a = new A(1)
+a.m
end
class C[E: Object, F: Object]
end
+
+var c = new C
+c.output
class A[E: Object]
end
+
+var a = new A
+a.output
end
class A[E: Object]
end
+
+var a = new A
+a.output
# limitations under the License.
var i: Int = '4'
+i.output
# limitations under the License.
for i in 5 do
+ i.output
end
class A[T]
var k: T[Int]
end
+
+var a = new A[Object]
+a.output
class G[Foo]
type Bar: Object
end
+
+var g = new G[Object]
fun toto: Int
do
end
+
+toto.output
return 0
end
end
+
+toto.output
return 1
end
end
+
+toto.output
return 1
end
end
+
+toto.output
return 1
end
end
+
+toto.output
super G1
super G2
end
+
+var g = new G3
+g.output
# limitations under the License.
if 5 then
+ 1.output
end
super Array[Int]
super Array[Char]
end
+
+var a = new A
+a.output
super A
super B
end
+
+var c = new C
+c.output
super A[Int]
super B[Char]
end
+
+var c = new C
+c.output
super Array[E]
super List[F]
end
+
+var a = new A[Int, Int]
+a.output
class C
super A
end
+
+var a = new A
+a.output
redef class Object
var toto: Bool
end
+
+toto.output
redef class Int
var toto: Object
end
+
+1.toto.output
# limitations under the License.
if 5 and true then
+ 1.output
end
# limitations under the License.
while 5 do
+ 1.output
end
fun toto(a: Int) do end
fun toto(a: Char) do end
end
+
+var a = new A
+a.toto(1)
fun toto(a: Int) do end
fun toto(a: Int): Int do return 0 end
end
+
+var a = new A
+a.toto(1).output
class A end
class A end
+var a = new A
+a.output
redef class A end
redef class A end
+var a = new A
+a.output
import kernel
redef class Fail end
+
+var f = new Fail
+f.output
redef class C
redef var a: Int
end
+
+var c = new C(new B)
+c.a.output
redef class C
redef fun s do end
end
+
+var c = new C(new B)
+c.s.output
redef class C
redef fun r(x: C) do end
end
+
+var c = new C(new B)
+c.r
redef class C
redef fun r(x: B): B do return self end
end
+
+var c = new C(new B)
+c.r
redef class C
redef fun s: Int do return 1 end
end
+
+var c = new C(new B)
+c.s.output
do
return
end
+
+toto.output
do
return '4'
end
+
+(toto+1).output
# limitations under the License.
if true or 6 then
+ 1.output
end
super A
redef fun foo: Int do return 3
end
+
+var a = new A
+a.foo.output
+
+var b = new B
+b.foo
+
+var c = new C
+c.foo
super A
redef var a: Object = 2
end
+
+var b = new B
+b.a.output
super A
redef fun toto do end
end
+
+var b = new B
+b.toto.output
super A
redef fun toto(c: Object) do end
end
+
+var b = new B
+b.toto(true)
super A
redef fun toto(c: Char) do end
end
+
+var b = new B
+b.toto(true)
class B
super A
-redef fun toto: Int do return 2end
+redef fun toto: Int do return 2 end
end
+
+var b = new B
+b.toto.output
super A
redef fun toto: Char do return 'a' end
end
+
+var b = new B
+b.toto.output
super
end
end
+
+var a = new A
+a.foo
super Fail
end
+var a = new A
+a.output
super Array[Fail]
end
+var b = new B
+b.output
class D[T: Array[Fail]]
end
+
+var c = new C[Int]
+c.output
+var d = new D[Int]
+d.output
fun md: Array[Fail] do return 0
end
+var e = new E
+e.output
+var f = new F
+f.output
+var g = new G
+g.a.output
+g.ma(1)
+g.mb(1)
+g.mc(1).output
+g.md(1).output
# limitations under the License.
var i = new Canard
+i.output