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

20 lines
286 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
package test
inline fun foo(x: (String) -> String, z: String) = x(z)
fun String.id() = this
// FILE: 2.kt
import test.*
fun box() : String {
var zeroSlot = "fail";
val z = "O"
return foo(z::plus, "K")
}