mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
16 lines
229 B
Kotlin
Vendored
16 lines
229 B
Kotlin
Vendored
// FILE: J.java
|
|
|
|
public class J extends K {
|
|
public final int value = 42;
|
|
}
|
|
|
|
// FILE: K.kt
|
|
|
|
open class K
|
|
|
|
fun box(): String {
|
|
val f = J::value
|
|
val a = J()
|
|
return if (f.get(a) == 42) "OK" else "Fail: ${f.get(a)}"
|
|
}
|