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:
pyos
2020-09-24 11:25:38 +02:00
committed by Alexander Udalov
parent a57c95624d
commit f30e564c90
4 changed files with 37 additions and 24 deletions
@@ -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()