Files
kotlin-fork/compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineBound.kt
T
2021-09-20 19:08:22 +03:00

17 lines
230 B
Kotlin
Vendored

// 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)