mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
18 lines
239 B
Kotlin
Vendored
18 lines
239 B
Kotlin
Vendored
// 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)
|
|
}
|