Files
kotlin-fork/compiler/testData/codegen/box/reflection/properties/javaPropertyInheritedInKotlin.kt
T
2018-12-21 16:09:06 +01:00

21 lines
289 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// FILE: J.java
public class J {
public String result = null;
}
// FILE: K.kt
class K : J()
fun box(): String {
val k = K()
val p = K::result
if (p.get(k) != null) return "Fail"
p.set(k, "OK")
return p.get(k)
}