Files
kotlin/compiler/testData/codegen/boxInline/callableReference/bound/emptyLhsProperty.kt
2019-06-04 14:56:13 +02:00

22 lines
259 B
Kotlin
Vendored

// FILE: 1.kt
package test
class X {
val result: String
get() = "OK"
fun x(): String {
return go(::result)
}
}
inline fun go(f: () -> String): String = f()
// FILE: 2.kt
import test.*
fun box(): String {
return X().x()
}