mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
Fix primitive override problem in Kotlin-Java inheritance
See the comment in JetTypeMapper
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user