import kernel
class A
- meth foo
+ fun foo
do
11.output
end
end
class B
-special A
- redef meth foo
+ super A
+ redef fun foo
do
21.output
end
- meth bar
+ fun bar
do
22.output
end
end
class C
-special B
- redef meth foo
+ super B
+ redef fun foo
do
31.output
end
- redef meth bar
+ redef fun bar
do
32.output
end
end
class G[E]
- meth out0
+ fun out0
do
0.output
end
init do end
end
class G[E: A]
- meth out1(e: E)
+ fun out1(e: E)
do
e.foo
end
end
class G[E: B]
- meth out2(e: E)
+ fun out2(e: E)
do
e.foo
e.bar