Files
kotlin-fork/compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineBound.kt
T
2021-02-09 17:23:19 +05:00

18 lines
303 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: BINDING_RECEIVERS
// FILE: 1.kt
package test
inline fun foo(x: () -> Unit): String {
x()
return "OK"
}
inline fun String.id(s: String = this, vararg xs: Int): String = s
// FILE: 2.kt
import test.*
fun box(): String = foo("Fail"::id)