Files
kotlin-fork/compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsFunction.kt
T
Alexander Udalov f4f5359725 Fix exception on inlining callable reference with implicit this in LHS
Use ResolvedCall to determine the receiver type in the JVM codegen,
instead of manually inspecting the PSI

 #KT-20821 Fixed
2017-11-27 12:46:55 +01:00

16 lines
265 B
Kotlin
Vendored

class X {
fun x(): String {
return foo("O", "K", ::y)
}
fun y(a: String, b: String): String = a + b
}
inline fun foo(a: String, b: String, f: (String, String) -> String): String {
return f(a, b)
}
fun box(): String {
return X().x()
}