mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
21 lines
329 B
Java
Vendored
21 lines
329 B
Java
Vendored
package test;
|
|
|
|
class ExtendsB extends B {
|
|
void test() {
|
|
int x = foo();
|
|
Integer y = foo();
|
|
Object z = foo();
|
|
}
|
|
}
|
|
|
|
class ExtendsC extends C {
|
|
void test() {
|
|
int x = foo();
|
|
Integer y = foo();
|
|
Object z = foo();
|
|
}
|
|
|
|
@Override
|
|
public Integer foo() { return 42; }
|
|
}
|