Files
kotlin/compiler/testData/codegen/bytecodeText/callableReference/unboundPropertyReferenceInInline.kt
2019-06-04 14:56:12 +02:00

12 lines
196 B
Kotlin
Vendored

fun box(): String {
return if (call(10, Int::calc) == 5) "OK" else "fail"
}
val Int.calc: Int
get() = this / 2
inline fun call(p: Int, s: (Int) -> Int): Int {
return s(p)
}
// 0 NEW