Files
kotlin/compiler/testData/codegen/box/reflection/properties/javaPropertyInheritedInKotlin.kt
2016-11-09 21:41:12 +03:00

21 lines
335 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// 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)
}