20 lines
324 B
Kotlin
Vendored
20 lines
324 B
Kotlin
Vendored
// Enable when callable references to builtin members is supported
|
|
// IGNORE_BACKEND: JS
|
|
// 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")
|
|
}
|