Files
kotlin-fork/compiler/testData/codegen/box/callableReference/adaptedReferences/inlineBound.kt
T
2020-11-09 16:04:43 +03:00

12 lines
239 B
Kotlin
Vendored

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