f4f5359725
Use ResolvedCall to determine the receiver type in the JVM codegen, instead of manually inspecting the PSI #KT-20821 Fixed
16 lines
265 B
Kotlin
Vendored
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()
|
|
}
|