Fix primitive override problem in Kotlin-Java inheritance
See the comment in JetTypeMapper
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class A {
|
||||
fun foo(): Int = 42
|
||||
}
|
||||
|
||||
fun bar() = A().foo()
|
||||
|
||||
// Test that for a simple final method in a final class we don't generate a bridge returning wrapper type
|
||||
// (we only generate the method returning a primitive int)
|
||||
|
||||
// 0 foo\(\)Ljava/lang/Integer;
|
||||
Reference in New Issue
Block a user