Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/trailingComma/noDisambiguation.kt
T
victor.petukhov 62d204f4d6 Support trailing comma
^KT-34743 Fixed
2019-11-01 19:40:20 +03:00

11 lines
211 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_VARIABLE, -UNUSED_PARAMETER
// !LANGUAGE: +TrailingCommas
fun foo(vararg x: Int) = false
fun foo() = true
fun main() {
val x = foo()
val y = foo(<!SYNTAX!>,<!><!SYNTAX!><!>)
}