Support trailing comma

^KT-34743 Fixed
This commit is contained in:
victor.petukhov
2019-10-07 13:21:25 +03:00
parent e638b9fd12
commit 62d204f4d6
83 changed files with 4717 additions and 96 deletions
@@ -1,4 +1,5 @@
// "Create property 'foo' as constructor parameter" "true"
// ERROR: The feature "trailing commas" is only available since language version 1.4
// ERROR: No value passed for parameter 'foo'
class A<T>(val n: T)
@@ -1,4 +1,5 @@
// "Create property 'foo' as constructor parameter" "true"
// ERROR: The feature "trailing commas" is only available since language version 1.4
// ERROR: No value passed for parameter 'foo'
class A<T>(val n: T, val foo: A<Int>)
@@ -1,4 +1,5 @@
// "Create property 'foo' as constructor parameter" "true"
// ERROR: The feature "trailing commas" is only available since language version 1.4
// ERROR: No value passed for parameter 'foo'
class A<T>(val n: T)
@@ -1,4 +1,5 @@
// "Create property 'foo' as constructor parameter" "true"
// ERROR: The feature "trailing commas" is only available since language version 1.4
// ERROR: No value passed for parameter 'foo'
class A<T>(val n: T, var foo: String)