mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
16 lines
290 B
Java
16 lines
290 B
Java
package test;
|
|
|
|
class Test extends B {
|
|
void test() {
|
|
A<Integer> a = new B();
|
|
int ax = a.foo();
|
|
Integer ay = a.foo();
|
|
Object az = a.foo();
|
|
|
|
B b = new B();
|
|
int bx = b.foo();
|
|
Integer by = b.foo();
|
|
Object bz = b.foo();
|
|
}
|
|
}
|