Files
kotlin-fork/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperField.kt
T
pyos f30e564c90 JVM_IR: do not use fields' superQualifierSymbol to cast the receiver
It's only for computing the field owner.

 #KT-42131 Fixed
2020-09-24 18:28:23 +02:00

20 lines
284 B
Kotlin
Vendored

// 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()