Files
kotlin-fork/compiler/testData/codegen/box/callableReference/kt46902.kt
T
2021-05-26 15:23:19 +02:00

13 lines
230 B
Kotlin
Vendored

class A {
inner class C(val m: String) {
fun test(): String {
m.f(::C)
return m
}
}
}
inline fun String.f(g: (String) -> A.C): A.C = g(this)
fun box(): String = A().C("OK").test()