JVM_IR: do not use fields' superQualifierSymbol to cast the receiver
It's only for computing the field owner. #KT-42131 Fixed
This commit is contained in:
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// FILE: test/Foo.java
|
||||
package test;
|
||||
|
||||
public class Foo {
|
||||
protected final String value;
|
||||
|
||||
protected Foo(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
import test.Foo
|
||||
|
||||
class Bar : Foo("OK") {
|
||||
fun baz() = super.value
|
||||
}
|
||||
|
||||
fun box(): String = Bar().baz()
|
||||
Reference in New Issue
Block a user