mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
20 lines
225 B
Kotlin
Vendored
20 lines
225 B
Kotlin
Vendored
// FILE: 1.kt
|
|
|
|
package test
|
|
|
|
object Host {
|
|
// private final foo()V
|
|
inline fun <reified T> foo(): String {
|
|
return "OK"
|
|
}
|
|
}
|
|
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.Host.foo
|
|
|
|
fun box(): String {
|
|
return foo<Any>()
|
|
}
|