Files
kotlin-fork/compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineVarargAndDefault.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

13 lines
234 B
Kotlin
Vendored

// FILE: 1.kt
package test
inline fun foo(vararg l: Long, s: String = "OK"): String =
if (l.size == 0) s else "Fail"
inline fun bar(f: () -> String): String = f()
// FILE: 2.kt
import test.*
fun box(): String = bar(::foo)