mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
9 lines
144 B
Kotlin
Vendored
9 lines
144 B
Kotlin
Vendored
fun box(): String {
|
|
class Id<T> {
|
|
fun invoke(t: T) = t
|
|
}
|
|
|
|
val ref = Id<String>::invoke
|
|
return ref(Id<String>(), "OK")
|
|
}
|