Files
kotlin/compiler/testData/codegen/box/callableReference/function/local/genericMember.kt
2019-11-19 11:00:09 +03:00

10 lines
174 B
Kotlin
Vendored

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