Files
kotlin-fork/compiler/testData/codegen/box/callableReference/adaptedReferences/emptyVarargAndDefault.kt
T
Alexander Udalov 1071919706 Remove backend tests on old inference
Also remove any mentions of NewInference, and rename some tests.
2021-11-09 20:07:33 +01:00

9 lines
185 B
Kotlin
Vendored

fun foo(x: String = "O", vararg y: String): String =
if (y.size == 0) x + "K" else "Fail"
fun call(f: () -> String): String = f()
fun box(): String {
return call(::foo)
}