TrailingCommaPostFormatProcessor: improve findInvalidCommas

Add case for line break between argument and comma
#KT-34744
This commit is contained in:
Dmitry Gridin
2020-01-23 00:24:55 +07:00
parent ca1aa6ed4e
commit 63ee723928
10 changed files with 1848 additions and 24 deletions
@@ -0,0 +1,9 @@
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
// FIX: Fix comma position
val x = {
x: Comparable<Comparable<Number>>,
y: String
<caret>,->
val a = 42
}