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

11 lines
188 B
Kotlin
Vendored

// !LANGUAGE: +TrailingCommas
fun foo(vararg x: Int) = false
fun foo(x: Int) = true
fun box(): String {
val x = foo(1)
val y = foo(1,)
return if (x && y) "OK" else "ERROR"
}