mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
21 lines
241 B
Kotlin
Vendored
21 lines
241 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// FILE: 1.kt
|
|
|
|
package test
|
|
|
|
object Host {
|
|
|
|
inline val <reified T : Any> T.foo: String
|
|
get() = T::class.java.simpleName
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.Host.foo
|
|
|
|
class OK
|
|
|
|
fun box(): String {
|
|
return OK().foo
|
|
}
|