Files
kotlin-fork/compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.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

15 lines
208 B
Kotlin
Vendored

class X {
val result: String
inline get() = "OK"
fun x(): String {
return go(::result)
}
}
inline fun go(f: () -> String): String = f()
fun box(): String {
return X().x()
}