Files
kotlin-fork/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.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

20 lines
276 B
Kotlin
Vendored

fun interface IFoo {
fun foo(i: Int)
}
fun useVararg(vararg foos: IFoo) {}
fun testLambda() {
useVararg({})
}
fun testSeveralLambdas() {
useVararg({}, {}, {})
}
fun withVarargOfInt(vararg xs: Int) = ""
fun testAdaptedCR() {
useVararg(::withVarargOfInt)
}