mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
Fix primitive override problem in Kotlin-Java inheritance
See the comment in JetTypeMapper
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class ExtendsB extends B {
|
||||
@Override
|
||||
public Integer foo() {
|
||||
return 239;
|
||||
}
|
||||
|
||||
void test() {
|
||||
int x = foo();
|
||||
Integer y = foo();
|
||||
Object z = foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user