Files
kotlin-fork/compiler/testData/codegen/boxInline/callableReference/bound/kt18728_2.kt
T
2018-06-28 12:26:41 +02:00

18 lines
298 B
Kotlin
Vendored

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