Support trailing comma
^KT-34743 Fixed
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// !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!><!>)
|
||||
}
|
||||
Reference in New Issue
Block a user