mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
14 lines
199 B
Kotlin
Vendored
14 lines
199 B
Kotlin
Vendored
|
|
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)()
|
|
}
|