Files
kotlin-fork/compiler/testData/codegen/box/callableReference/bound/genericValOnLHS.kt
T
2021-09-20 19:08:22 +03:00

15 lines
274 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: PROPERTY_REFERENCES
class Generic<P : Any>(val p: P)
class Host {
fun t() {}
val v = "OK"
}
fun box(): String {
Generic(Host()).p::class
(Generic(Host()).p::t)()
return (Generic(Host()).p::v)()
}