Files
kotlin-fork/compiler/testData/codegen/box/callableReference/property/kClassInstanceIsInitializedFirst.kt
T
2020-11-09 16:04:43 +03:00

16 lines
276 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: PROPERTY_REFERENCES
import kotlin.reflect.KProperty1
class A {
companion object {
val ref: KProperty1<A, String> = A::foo
}
val foo: String = "OK"
}
fun box(): String {
return A.ref.get(A())
}