Files
kotlin-fork/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinPropertyReferenceFromInner.kt
T
Alexander Udalov 82af3dd6ae Tests: fix paths of Java sources in codegen tests
To help them run on the old infrastructure, which light analysis tests
are still using.
2023-06-13 17:48:23 +00:00

26 lines
372 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// FILE: base/Jaba.java
package base;
public class Jaba {
protected String a = "FAIL";
}
// FILE: test.kt
import base.Jaba
fun box(): String {
val x = object : Jaba() {
private val a: String = "OK"
inner class S {
fun foo() = ::a.get()
}
fun bar() = S().foo()
}
return x.bar()
}