Files
kotlin-fork/compiler/testData/diagnostics/tests/varargs/NilaryVsVararg.kt
T
Andrey Breslav 3d8d92c7d3 JetDiagnosticsTest migrated to TestGenerator
- test data files renamed from *.jet to *.kt
2012-07-10 14:48:11 +04:00

10 lines
175 B
Kotlin
Vendored

fun foo0() : String = "noarg"
fun foo0(vararg <!UNUSED_PARAMETER!>t<!> : Int) : String = "vararg"
fun test0() {
foo0()
foo0(1)
val a = IntArray(0)
foo0(*a)
}