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