5f64d6ec76
#KT-42656 Fixed
18 lines
253 B
Kotlin
Vendored
18 lines
253 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// 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)}"
|
|
}
|