Files
kotlin-fork/compiler/testData/codegen/box/callableReference/bound/genericValOnLHS.kt
T
2018-08-15 13:35:14 +03:00

16 lines
251 B
Kotlin
Vendored

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