Files
kotlin/compiler/testData/codegen/box/callableReference/bound/genericValOnLHS.kt
2019-11-19 11:00:09 +03:00

15 lines
229 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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)()
}