Files
kotlin-fork/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_4.kt
T
2018-06-09 19:15:38 +03:00

19 lines
297 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
package test
inline fun <R> map(transform: () -> R): R {
return transform()
}
// FILE: 2.kt
import test.*
val Long.myInc
get() = this + 1
fun box(): String {
val result = map(2L::myInc)
return if (result == 3L) "OK" else "fail $result"
}