Files
kotlin/compiler/testData/codegen/box/callableReference/function/local/genericMember.kt
2018-06-28 12:26:41 +02:00

10 lines
170 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
fun box(): String {
class Id<T> {
fun invoke(t: T) = t
}
val ref = Id<String>::invoke
return ref(Id<String>(), "OK")
}