Files
kotlin/compiler/testData/codegen/boxAgainstJava/property/referenceToJavaFieldViaBridge.kt
2018-08-02 13:19:27 +02:00

23 lines
263 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: test/D.java
package test;
public class D {
protected String field = "OK";
}
// FILE: 1.kt
import test.D
class A : D() {
fun a(): String {
return {field!!}()
}
}
fun box(): String {
return A().a()
}