Implement TrailingCommaInspection
#KT-34744
This commit is contained in:
@@ -2922,6 +2922,15 @@
|
||||
language="kotlin"
|
||||
/>
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.TrailingCommaInspection"
|
||||
displayName="Trailing comma recommendations"
|
||||
groupPath="Kotlin"
|
||||
groupName="Style issues"
|
||||
enabledByDefault="true"
|
||||
level="WEAK WARNING"
|
||||
language="kotlin"
|
||||
/>
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.FakeJvmFieldConstantInspection"
|
||||
displayName="Kotlin non-const property used as Java constant"
|
||||
groupPath="Kotlin"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection reports commas which have a different position from the one recommended in the style guide,
|
||||
and offers to reformat them.
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.idea.inspections
|
||||
|
||||
import com.intellij.codeInspection.ProblemsHolder
|
||||
import com.intellij.openapi.util.TextRange
|
||||
import com.intellij.psi.PsiElement
|
||||
import com.intellij.psi.PsiElementVisitor
|
||||
import org.jetbrains.kotlin.idea.formatter.TrailingCommaPostFormatProcessor.Companion.findInvalidCommas
|
||||
import org.jetbrains.kotlin.idea.formatter.TrailingCommaPostFormatProcessor.Companion.needComma
|
||||
import org.jetbrains.kotlin.idea.formatter.TrailingCommaPostFormatProcessor.Companion.trailingCommaAllowedInModule
|
||||
import org.jetbrains.kotlin.idea.formatter.TrailingCommaPostFormatProcessor.Companion.trailingCommaOrLastElement
|
||||
import org.jetbrains.kotlin.idea.formatter.TrailingCommaVisitor
|
||||
import org.jetbrains.kotlin.idea.formatter.isComma
|
||||
import org.jetbrains.kotlin.idea.formatter.leafIgnoringWhitespaceAndComments
|
||||
import org.jetbrains.kotlin.idea.quickfix.ReformatQuickFix
|
||||
import org.jetbrains.kotlin.psi.KtElement
|
||||
import org.jetbrains.kotlin.psi.psiUtil.endOffset
|
||||
import org.jetbrains.kotlin.psi.psiUtil.nextLeaf
|
||||
import org.jetbrains.kotlin.psi.psiUtil.startOffset
|
||||
|
||||
class TrailingCommaInspection : AbstractKotlinInspection() {
|
||||
override fun buildVisitor(holder: ProblemsHolder, isOnTheFly: Boolean): PsiElementVisitor = object : TrailingCommaVisitor() {
|
||||
override val recursively: Boolean = false
|
||||
|
||||
override fun process(commaOwner: KtElement) {
|
||||
checkCommaPosition(commaOwner)
|
||||
checkTrailingComma(commaOwner)
|
||||
}
|
||||
|
||||
private fun checkCommaPosition(commaOwner: KtElement) {
|
||||
if (!needComma(commaOwner, checkExistingTrailingComma = true)) return
|
||||
for (invalidComma in findInvalidCommas(commaOwner)) {
|
||||
reportProblem(invalidComma, "Comma loses the advantages in this position", "Fix comma position")
|
||||
}
|
||||
}
|
||||
|
||||
private fun checkTrailingComma(commaOwner: KtElement) {
|
||||
val trailingCommaOrLastElement = trailingCommaOrLastElement(commaOwner) ?: return
|
||||
if (needComma(commaOwner, checkExistingTrailingComma = false)) {
|
||||
if (!trailingCommaAllowedInModule(commaOwner) || trailingCommaOrLastElement.isComma) return
|
||||
reportProblem(trailingCommaOrLastElement, "Missing trailing comma", "Add trailing comma")
|
||||
} else if (!needComma(commaOwner, checkExistingTrailingComma = true)) {
|
||||
if (!trailingCommaOrLastElement.isComma) return
|
||||
reportProblem(trailingCommaOrLastElement, "Redundant trailing comma", "Remove trailing comma")
|
||||
}
|
||||
}
|
||||
|
||||
private fun reportProblem(commaOrElement: PsiElement, message: String, fixMessage: String) {
|
||||
val commaOwner = commaOrElement.parent
|
||||
holder.registerProblem(
|
||||
commaOwner,
|
||||
commaOrElement.textRangeOfLastSymbol.shiftLeft(commaOwner.startOffset),
|
||||
message,
|
||||
ReformatQuickFix(fixMessage)
|
||||
)
|
||||
}
|
||||
|
||||
private val PsiElement.textRangeOfLastSymbol: TextRange
|
||||
get() {
|
||||
val textRange = textRange
|
||||
if (textRange.length <= 1) return textRange
|
||||
|
||||
return nextLeaf()?.leafIgnoringWhitespaceAndComments(false)?.endOffset?.takeIf { it > 0 }?.let {
|
||||
TextRange.create(it - 1, it).intersection(textRange)
|
||||
} ?: TextRange.create(textRange.endOffset - 1, textRange.endOffset)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.idea.quickfix
|
||||
|
||||
import com.intellij.codeInspection.LocalQuickFix
|
||||
import com.intellij.codeInspection.ProblemDescriptor
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.psi.codeStyle.CodeStyleManager
|
||||
|
||||
class ReformatQuickFix(val description: String) : LocalQuickFix {
|
||||
override fun getName(): String = description
|
||||
|
||||
override fun getFamilyName(): String = name
|
||||
|
||||
override fun applyFix(project: Project, descriptor: ProblemDescriptor) {
|
||||
descriptor.psiElement?.let {
|
||||
CodeStyleManager.getInstance(project).reformat(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,225 @@
|
||||
fun foo() {
|
||||
testtest(foofoo, foofoo, foofoo,
|
||||
foofoo, bar)
|
||||
|
||||
testtest(
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
)
|
||||
|
||||
testtest(foofoo
|
||||
)
|
||||
|
||||
testtest(
|
||||
foofoo)
|
||||
|
||||
testtest(
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo)))
|
||||
|
||||
testtest(foofoo, fososos, testtest(testtest(foofoo)),)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,)), testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), testsa)
|
||||
|
||||
useCallable("A", Callable { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", Callable {
|
||||
println("Hello world")
|
||||
}, Callable {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(Callable { println("Hello world") })
|
||||
|
||||
useCallable(Callable { println("Hello world") },)
|
||||
|
||||
useCallable(Callable { println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable(Callable { println("Hello world") }){
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
Callable { println("Hello world") })
|
||||
|
||||
useCallable("A", { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", {
|
||||
println("Hello world")
|
||||
}, {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable({ println("Hello world") })
|
||||
|
||||
useCallable({ println("Hello world") },)
|
||||
|
||||
useCallable({ println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable({ println("Hello world") }){
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
{ println("Hello world") })
|
||||
|
||||
useCallable("A", foo() { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", foo() {
|
||||
println("Hello world")
|
||||
}, foo() {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(foo() { println("Hello world") })
|
||||
|
||||
useCallable(foo() { println("Hello world") },)
|
||||
|
||||
useCallable(foo() { println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable(foo() { println("Hello world") }) {
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
foo() { println("Hello world") })
|
||||
|
||||
useCallable("A", object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
useCallable("A", object : Callable<Unit> {
|
||||
override fun call() {
|
||||
println("Hello world")
|
||||
}
|
||||
})
|
||||
|
||||
useCallable("B", "C", object : Callable<Unit> { override fun call() { println("Hello world") } }, foo() {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } },)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } }
|
||||
)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } }) {
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
testtest(
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
)
|
||||
|
||||
testtest(/*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
)
|
||||
|
||||
testtest(foofoo // fd
|
||||
)
|
||||
|
||||
testtest( /**/
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,/**/)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
)
|
||||
|
||||
testtest(foofoo // fd
|
||||
)
|
||||
|
||||
testtest( /**/
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,/**/)
|
||||
|
||||
testtest(foofoo, fososos,/*
|
||||
*/ testtest(testtest(foofoo)),)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,)), /**/testsa)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,))/* */ , /**/testsa)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,))/*
|
||||
*/ ,testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), /**/testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), /*
|
||||
*/testsa)
|
||||
|
||||
useCallable("B", "C", Callable {
|
||||
println("Hello world")
|
||||
}, /* */ Callable {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(Callable { println("Hello world") } // ffd
|
||||
)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") }
|
||||
},)
|
||||
|
||||
useCallable(foo() { println("Hello world")
|
||||
},)
|
||||
|
||||
useCallable({
|
||||
println("Hello world") },)
|
||||
|
||||
useCallable(Callable { println("Hello world") }
|
||||
,)
|
||||
|
||||
testtest(foofoo, testtest(testtest(
|
||||
foofoo,)), testsa)
|
||||
|
||||
testtest(foofoo, fososos, testtest(testtest(foofoo))
|
||||
,)
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
baz(
|
||||
f = fun(it: Int): String = "$it" /*dwdwd
|
||||
*/,
|
||||
name = "" /*
|
||||
*/,
|
||||
)
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
@Anno([1])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1,2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, 2, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, 2 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2, 2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2, 2,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno(["1"
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 , 2 , 2 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1/*
|
||||
*/])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, //dw
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1 // ds
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([/*
|
||||
*/ // d
|
||||
1/*
|
||||
*/,/*
|
||||
*/ ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
/*
|
||||
*/ 1 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1/*
|
||||
*/,2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2/*
|
||||
*/,/*
|
||||
*/])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([/*
|
||||
*/1, 2
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno(["1"
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 , 2 /*
|
||||
*/ ])
|
||||
fun a() = Unit
|
||||
|
||||
@Component(
|
||||
modules = [
|
||||
AppModule::class, DataModule::class,
|
||||
DomainModule::class
|
||||
],
|
||||
)
|
||||
fun b() = Unit
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x,
|
||||
y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (
|
||||
x,
|
||||
y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (
|
||||
x // adw
|
||||
,y,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x /* val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}*/,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y/**/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y/*
|
||||
*/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (/**/x /**/ /*
|
||||
*/, // awdawd
|
||||
y/*
|
||||
*/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = {
|
||||
(/**/x /**/ /*
|
||||
*/, // awdawd
|
||||
y/*
|
||||
*/),
|
||||
z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y,),
|
||||
z, ->
|
||||
println(x)
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
enum class Enum1 {
|
||||
A, B,;
|
||||
}
|
||||
|
||||
enum class Enum2 {
|
||||
A, B;
|
||||
}
|
||||
|
||||
enum class Enum3 {
|
||||
A, B
|
||||
;
|
||||
}
|
||||
|
||||
enum class Enum4 {
|
||||
A, B,
|
||||
}
|
||||
|
||||
enum class Enum5 {
|
||||
A, B,
|
||||
}
|
||||
|
||||
enum class Enum6(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B,
|
||||
}
|
||||
|
||||
enum class Enum7(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B,;
|
||||
}
|
||||
|
||||
enum class Enum8(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B;
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
fun foo() {
|
||||
testtest[foofoo, foofoo, foofoo,
|
||||
foofoo, bar]
|
||||
|
||||
testtest[
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
]
|
||||
|
||||
testtest[foofoo
|
||||
]
|
||||
|
||||
testtest[
|
||||
foofoo]
|
||||
|
||||
testtest[
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo]]]
|
||||
|
||||
testtest[foofoo, fososos,
|
||||
testtest[testtest[foofoo]],]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]], testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], testsa]
|
||||
|
||||
useCallable["A", Callable { println["Hello world"] }]
|
||||
|
||||
useCallable["B", "C", Callable {
|
||||
println["Hello world"]
|
||||
}, Callable {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }]
|
||||
|
||||
useCallable[Callable { println["Hello world"] },]
|
||||
|
||||
useCallable[Callable {
|
||||
println["Hello world"] },]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }
|
||||
]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }]{
|
||||
|
||||
}
|
||||
|
||||
useCallable[
|
||||
Callable { println["Hello world"] }]
|
||||
|
||||
useCallable["A", { println["Hello world"] }]
|
||||
|
||||
useCallable["B", "C", {
|
||||
println["Hello world"]
|
||||
}, {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[{ println["Hello world"] }]
|
||||
|
||||
useCallable[{ println["Hello world"] },]
|
||||
|
||||
useCallable[{ println["Hello world"] }
|
||||
,]
|
||||
|
||||
useCallable[{ println["Hello world"] }
|
||||
]
|
||||
|
||||
useCallable[
|
||||
{ println["Hello world"] }]
|
||||
|
||||
useCallable["A", object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
useCallable["A", object : Callable<Unit> {
|
||||
override fun call() {
|
||||
println["Hello world"]
|
||||
}
|
||||
}]
|
||||
|
||||
useCallable["B", "C", object : Callable<Unit> { override fun call() { println["Hello world"] } }, foo[0,]]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } },]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }
|
||||
]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }] {
|
||||
|
||||
}
|
||||
|
||||
useCallable[
|
||||
object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
testtest[
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
]
|
||||
|
||||
testtest[/*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
]
|
||||
|
||||
testtest[foofoo // fd
|
||||
]
|
||||
|
||||
testtest[ /**/
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,/**/]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
]
|
||||
|
||||
testtest[foofoo // fd
|
||||
]
|
||||
|
||||
testtest[ /**/
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,/**/]
|
||||
|
||||
testtest[foofoo, fososos,/*
|
||||
*/ testtest[testtest[foofoo]],]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]], /**/testsa]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]]/* */ , /**/testsa]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]]/*
|
||||
*/ ,testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], /**/testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], /*
|
||||
*/testsa]
|
||||
|
||||
useCallable["B", "C", Callable {
|
||||
println["Hello world"]
|
||||
}, /* */ Callable {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[Callable { println["Hello world"] } // ffd
|
||||
]
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>,
|
||||
y: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: Comparable<Comparable<Number>>, y: String->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: String, y
|
||||
: String->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: Comparable<Comparable<Number>>,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>,
|
||||
y: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String ,
|
||||
y: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String ,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x, y: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String, z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
z: String, v: Comparable<Comparable<Number>>,
|
||||
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: String,
|
||||
y: Comparable<Comparable<Number>>,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Int
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String
|
||||
, /* */ z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String
|
||||
->
|
||||
println("1")
|
||||
}()
|
||||
|
||||
val x = {
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String ,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>, y: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String, z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
fun main() {
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: Iterable<Iterable<Number>> // trailing comma
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: Iterable<Iterable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>,
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>, //
|
||||
z: Iterable<Iterable<Number>> // /**/
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>
|
||||
// wd
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>/*
|
||||
*/, z: Iterable<Iterable<Number>>, /* //
|
||||
*/) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (/**/y: Comparable<Comparable<Number>>/**/) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>/**/,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: ( /*
|
||||
*/y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
}
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
fun test() {
|
||||
val (a, b) = 1 to 2
|
||||
|
||||
val (a, b) = 1 to
|
||||
2
|
||||
|
||||
val (a, b) = 1
|
||||
to
|
||||
2
|
||||
|
||||
|
||||
val (a, b,) = 1 to 2
|
||||
|
||||
val (a,) =
|
||||
b
|
||||
|
||||
val (a,
|
||||
) =
|
||||
b
|
||||
|
||||
val (a
|
||||
) =
|
||||
b
|
||||
|
||||
val (a,) = b
|
||||
|
||||
val (
|
||||
a,) = b
|
||||
|
||||
val (a, b
|
||||
) = 1 to 2
|
||||
|
||||
val (a,
|
||||
b) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b
|
||||
) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b,
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f,
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b/**/) = 1 to 2
|
||||
|
||||
val (a, /**/b/**/) /**/=/**/ 1 to
|
||||
2
|
||||
|
||||
val (a,/**/ b) = 1
|
||||
to
|
||||
2
|
||||
|
||||
val (a, b/**/,) = 1 to 2
|
||||
|
||||
val (a/**/, b/**/,/**/) = 1 to 2
|
||||
|
||||
val (a/**/,/**/) =
|
||||
b
|
||||
|
||||
val (a,) = b
|
||||
|
||||
val (a, b/**/
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b// awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a,/**/ b /**/ // awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a, // ad
|
||||
/**/b) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b // fe
|
||||
/**/)/**/ = 1 to 2
|
||||
|
||||
val (
|
||||
a, b, // awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f // awd
|
||||
/*
|
||||
*/) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f // awd
|
||||
,
|
||||
) = 1 to 2
|
||||
}
|
||||
@@ -0,0 +1,458 @@
|
||||
class A1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class B1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class C1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class D1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String
|
||||
,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class A2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class B2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class C2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class D2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class A3 {
|
||||
val x: String
|
||||
|
||||
constructor(x: String,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class B3 {
|
||||
val x: String
|
||||
|
||||
constructor(x: String) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class C3 {
|
||||
val x: String
|
||||
|
||||
constructor(
|
||||
x: String,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class D3 {
|
||||
val x: String
|
||||
|
||||
constructor(
|
||||
x: String
|
||||
,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class E1 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String, z: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class E2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String, z: String) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
class A1(
|
||||
val x: String,
|
||||
y: String,
|
||||
)
|
||||
|
||||
class B1(
|
||||
val x: String,
|
||||
val y: String
|
||||
)
|
||||
|
||||
class C1(
|
||||
val x: String,
|
||||
val y: String,)
|
||||
|
||||
class D1(
|
||||
val x: String,
|
||||
val y: String
|
||||
,)
|
||||
|
||||
class A2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String,
|
||||
)
|
||||
|
||||
class B2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
)
|
||||
|
||||
class C2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String,)
|
||||
|
||||
class D2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
,)
|
||||
|
||||
class A3(
|
||||
val x: String,
|
||||
)
|
||||
|
||||
class B3(
|
||||
val x: String
|
||||
)
|
||||
|
||||
class C3(
|
||||
val x: String,)
|
||||
|
||||
class D3(
|
||||
val x: String
|
||||
,)
|
||||
|
||||
class A4(
|
||||
val x: String ,
|
||||
val y: String,
|
||||
val z: String ,
|
||||
)
|
||||
|
||||
class B4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
)
|
||||
|
||||
class C4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String ,)
|
||||
|
||||
class D4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class E1(
|
||||
val x: String, val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class E2(
|
||||
val x: String, val y: String, val z: String
|
||||
)
|
||||
|
||||
class C(
|
||||
z: String, val v: Int, val x: Int =
|
||||
42, val y: Int =
|
||||
42
|
||||
)
|
||||
|
||||
val foo1: (Int, Int) -> Int = fun(
|
||||
x,
|
||||
y,
|
||||
): Int = 42
|
||||
|
||||
val foo2: (Int, Int) -> Int = fun(
|
||||
x,
|
||||
y
|
||||
): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo3: (Int, Int) -> Int = fun(
|
||||
x, y,
|
||||
): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo4: (Int) -> Int = fun(
|
||||
x,
|
||||
): Int = 42
|
||||
|
||||
val foo5: (Int) -> Int = fun(
|
||||
x
|
||||
): Int = 42
|
||||
|
||||
val foo6: (Int) -> Int = fun(x,): Int = 42
|
||||
|
||||
val foo7: (Int) -> Int = fun(x): Int = 42
|
||||
|
||||
val foo8: (Int, Int, Int) -> Int = fun (x, y: Int, z,): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo9: (Int, Int, Int) -> Int = fun (
|
||||
x,
|
||||
y: Int,
|
||||
z,
|
||||
): Int = 42
|
||||
|
||||
val foo10: (Int, Int, Int) -> Int = fun (
|
||||
x,
|
||||
y: Int,
|
||||
z: Int
|
||||
): Int = 43
|
||||
|
||||
val foo10 = fun (
|
||||
x: Int,
|
||||
y: Int,
|
||||
z: Int
|
||||
): Int = 43
|
||||
|
||||
val foo11 = fun (
|
||||
x: Int,
|
||||
y: Int,
|
||||
z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo12 = fun (
|
||||
x: Int, y: Int, z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo13 = fun (x: Int, y: Int, z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo14 = fun (x: Int, y: Int, z: Int
|
||||
,): Int = 43
|
||||
|
||||
fun a1(
|
||||
x: String,
|
||||
y: String,
|
||||
) = Unit
|
||||
|
||||
fun b1(
|
||||
x: String,
|
||||
y: String
|
||||
) = Unit
|
||||
|
||||
fun c1(
|
||||
x: String,
|
||||
y: String,) = Unit
|
||||
|
||||
fun d1(
|
||||
x: String,
|
||||
y: String
|
||||
,) = Unit
|
||||
|
||||
fun a2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
) = Unit
|
||||
|
||||
fun b2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) = Unit
|
||||
|
||||
fun c2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,) = Unit
|
||||
|
||||
fun d2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,) = Unit
|
||||
|
||||
fun a3(
|
||||
x: String,
|
||||
) = Unit
|
||||
|
||||
fun b3(
|
||||
x: String
|
||||
) = Unit
|
||||
|
||||
fun c3(
|
||||
x: String,) = Unit
|
||||
|
||||
fun d3(
|
||||
x: String
|
||||
,) = Unit
|
||||
|
||||
fun a4(
|
||||
x: String
|
||||
,
|
||||
y: String,
|
||||
z: String ,
|
||||
) = Unit
|
||||
|
||||
fun b4(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) = Unit
|
||||
|
||||
fun c4(x: String,
|
||||
y: String,
|
||||
z: String ,) = Unit
|
||||
|
||||
fun d4(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
, ) = Unit
|
||||
|
||||
fun foo(
|
||||
x: Int =
|
||||
42
|
||||
) {
|
||||
}
|
||||
|
||||
class C(
|
||||
val x: Int =
|
||||
42
|
||||
)
|
||||
|
||||
class G(
|
||||
val x: String, val y: String
|
||||
= "", /* */ val z: String
|
||||
)
|
||||
|
||||
class G(
|
||||
val x: String, val y: String
|
||||
= "" /* */, /* */ val z: String
|
||||
)
|
||||
|
||||
class H(
|
||||
val x: String, /*
|
||||
*/ val y: String,
|
||||
val z: String ,)
|
||||
|
||||
class J(
|
||||
val x: String, val y: String , val z: String /*
|
||||
*/
|
||||
, )
|
||||
|
||||
class K(
|
||||
val x: String, val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class L(
|
||||
val x: String, val y: String, val z: String // adwd
|
||||
)
|
||||
@@ -0,0 +1,113 @@
|
||||
fun foo() {
|
||||
testtest<foofoo,
|
||||
testtest<testtest<
|
||||
foofoo,
|
||||
>,
|
||||
>,
|
||||
testsa,
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo,
|
||||
foofoo, bar>()
|
||||
|
||||
testtest<
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
>()
|
||||
|
||||
testtest<foofoo
|
||||
>()
|
||||
|
||||
testtest<
|
||||
foofoo>()
|
||||
|
||||
testtest<
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo>>>()
|
||||
|
||||
testtest<foofoo, fososos, testtest<testtest<foofoo>>,>()
|
||||
|
||||
testtest<foofoo, fososos, testtest<testtest<foofoo>>
|
||||
,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>, testsa>()
|
||||
|
||||
testtest<foofoo, *, testtest<testtest<foofoo,>>, testsa>()
|
||||
|
||||
testtest<
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
>()
|
||||
|
||||
testtest</*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
>()
|
||||
|
||||
testtest<foofoo // fd
|
||||
>()
|
||||
|
||||
testtest< /**/
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,/**/>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
>()
|
||||
|
||||
testtest<foofoo // fd
|
||||
>()
|
||||
|
||||
testtest< /**/
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,/**/>()
|
||||
|
||||
testtest<foofoo,/*
|
||||
*/>()
|
||||
|
||||
testtest<
|
||||
foofoo,/**/>()
|
||||
|
||||
testtest<foofoo, fososos,/*
|
||||
*/ testtest<testtest<foofoo>>,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>, /**/testsa>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>/* */ , /**/testsa>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>/*
|
||||
*/ ,testsa>()
|
||||
|
||||
testtest<foofoo, seee, testtest<testtest<foofoo,>>, /**/testsa>()
|
||||
|
||||
testtest<foofoo, seee, testtest<testtest<foofoo,>>, /*
|
||||
*/testsa>()
|
||||
}
|
||||
+261
@@ -0,0 +1,261 @@
|
||||
class A1<
|
||||
x: String,
|
||||
y: String,
|
||||
>
|
||||
|
||||
class F<x: String, y: String>
|
||||
|
||||
class F2<x: String, y
|
||||
: String>
|
||||
|
||||
class B1<
|
||||
x: String,
|
||||
y: String
|
||||
>
|
||||
|
||||
class C1<
|
||||
x: String,
|
||||
y: String,>
|
||||
|
||||
class D1<
|
||||
x: String,
|
||||
y: String
|
||||
,>
|
||||
|
||||
class A2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
>
|
||||
|
||||
class B2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
>
|
||||
|
||||
class C2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,>
|
||||
|
||||
class D2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,>
|
||||
|
||||
class A3<
|
||||
x: String,
|
||||
>
|
||||
|
||||
class B3<
|
||||
x: String
|
||||
>
|
||||
|
||||
class C3<
|
||||
x: String,>
|
||||
|
||||
class D3<
|
||||
x: String
|
||||
,>
|
||||
|
||||
class A4<
|
||||
x: String ,
|
||||
y: String,
|
||||
z ,
|
||||
>
|
||||
|
||||
class B4<
|
||||
x: String,
|
||||
y,
|
||||
z: String
|
||||
>
|
||||
|
||||
class C4<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String ,>
|
||||
|
||||
class D4<
|
||||
x: String,
|
||||
y,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class E1<
|
||||
x, y: String,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class E2<
|
||||
x: String, y: String, z: String
|
||||
>
|
||||
|
||||
class C<
|
||||
z: String, v
|
||||
|
||||
>
|
||||
|
||||
fun <x: String,
|
||||
y: String,
|
||||
> a1() = Unit
|
||||
|
||||
fun <x: String,
|
||||
y: String
|
||||
> b1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,> c1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String
|
||||
,> d1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
> a2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
> b2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,> c2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,> d2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
> a3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
> b3() = Unit
|
||||
|
||||
fun <
|
||||
x: String,> c3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
,> d3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
,
|
||||
y: String,
|
||||
z: String ,
|
||||
> a4() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
> b4() = Unit
|
||||
|
||||
fun <x: String,
|
||||
y: String,
|
||||
z: String ,> c4() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
, > d4() = Unit
|
||||
|
||||
fun <
|
||||
x
|
||||
> foo() {
|
||||
}
|
||||
|
||||
fun <T> ag() {
|
||||
|
||||
}
|
||||
|
||||
fun <T,> ag() {
|
||||
|
||||
}
|
||||
|
||||
fun <
|
||||
T> ag() {
|
||||
|
||||
}
|
||||
|
||||
class C<
|
||||
x: Int
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
, /* */ z: String
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String
|
||||
>()
|
||||
|
||||
class H<
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String ,>
|
||||
|
||||
class J<
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, >
|
||||
|
||||
class K<
|
||||
x: String, y: String,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class L<
|
||||
x: String, y: String, z: String
|
||||
>
|
||||
|
||||
class C<
|
||||
x: Int // adad
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
, /* */ z: String // adad
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String /**/,
|
||||
>()
|
||||
|
||||
class H<
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String /*
|
||||
*/ ,>
|
||||
|
||||
class J<
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, /**/ >
|
||||
|
||||
class K<
|
||||
x: String, y: String,
|
||||
z: String // aw
|
||||
, >
|
||||
|
||||
class L<
|
||||
x: String, y: String, z: String //awd
|
||||
>
|
||||
@@ -0,0 +1,75 @@
|
||||
fun foo(x: Any) = when (x) {
|
||||
Comparable::class, Iterable::class, String::class, // trailing comma
|
||||
-> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
fun foo(x: Any) {
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class, String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class,
|
||||
String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class,
|
||||
String::class /*// trailing comma*/, -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class, String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1 -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1, -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1
|
||||
-> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1, 2,
|
||||
3 /**/ -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (val c = x) {
|
||||
1, 2,
|
||||
3 /**/ -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when {
|
||||
x in coll
|
||||
-> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
}
|
||||
+875
@@ -0,0 +1,875 @@
|
||||
<problems>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>26</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>30</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>32</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>34</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>46</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>68</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>90</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>116</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>131</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>159</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>162</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>172</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>177</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>179</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>181</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>182</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>184</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>186</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>221</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>223</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>4</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>22</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>40</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>70</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>80</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>84</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>1</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>1</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>5</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>22</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>28</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>32</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>36</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>46</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>54</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>61</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>26</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>33</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>35</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>47</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>72</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>91</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>95</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>110</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>138</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>141</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>151</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>156</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>158</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>160</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>161</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>163</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>165</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaParameterList.kt</file>
|
||||
<line>81</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaParameterList.kt</file>
|
||||
<line>160</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaParameterList.kt</file>
|
||||
<line>175</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>20</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>33</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>61</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>70</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>12</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>14</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>25</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>61</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>63</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>65</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>68</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>97</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>118</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>298</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>302</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>438</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>449</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>34</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>38</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>43</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>45</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>50</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>78</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>81</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>91</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>102</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>104</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>106</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>107</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>109</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>111</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>187</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>207</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>218</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>240</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>240</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>247</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>252</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>257</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>WhenEntry.kt</file>
|
||||
<line>21</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="WhenEntry.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>WhenEntry.kt</file>
|
||||
<line>38</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="WhenEntry.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
</problems>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.TrailingCommaInspection
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-TrailingCommas
|
||||
// SET_TRUE: ALLOW_TRAILING_COMMA
|
||||
@@ -0,0 +1,225 @@
|
||||
fun foo() {
|
||||
testtest(foofoo, foofoo, foofoo,
|
||||
foofoo, bar)
|
||||
|
||||
testtest(
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
)
|
||||
|
||||
testtest(foofoo
|
||||
)
|
||||
|
||||
testtest(
|
||||
foofoo)
|
||||
|
||||
testtest(
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo)))
|
||||
|
||||
testtest(foofoo, fososos, testtest(testtest(foofoo)),)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,)), testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), testsa)
|
||||
|
||||
useCallable("A", Callable { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", Callable {
|
||||
println("Hello world")
|
||||
}, Callable {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(Callable { println("Hello world") })
|
||||
|
||||
useCallable(Callable { println("Hello world") },)
|
||||
|
||||
useCallable(Callable { println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable(Callable { println("Hello world") }){
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
Callable { println("Hello world") })
|
||||
|
||||
useCallable("A", { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", {
|
||||
println("Hello world")
|
||||
}, {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable({ println("Hello world") })
|
||||
|
||||
useCallable({ println("Hello world") },)
|
||||
|
||||
useCallable({ println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable({ println("Hello world") }){
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
{ println("Hello world") })
|
||||
|
||||
useCallable("A", foo() { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", foo() {
|
||||
println("Hello world")
|
||||
}, foo() {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(foo() { println("Hello world") })
|
||||
|
||||
useCallable(foo() { println("Hello world") },)
|
||||
|
||||
useCallable(foo() { println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable(foo() { println("Hello world") }) {
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
foo() { println("Hello world") })
|
||||
|
||||
useCallable("A", object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
useCallable("A", object : Callable<Unit> {
|
||||
override fun call() {
|
||||
println("Hello world")
|
||||
}
|
||||
})
|
||||
|
||||
useCallable("B", "C", object : Callable<Unit> { override fun call() { println("Hello world") } }, foo() {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } },)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } }
|
||||
)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } }) {
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
testtest(
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
)
|
||||
|
||||
testtest(/*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
)
|
||||
|
||||
testtest(foofoo // fd
|
||||
)
|
||||
|
||||
testtest( /**/
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,/**/)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
)
|
||||
|
||||
testtest(foofoo // fd
|
||||
)
|
||||
|
||||
testtest( /**/
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,/**/)
|
||||
|
||||
testtest(foofoo, fososos,/*
|
||||
*/ testtest(testtest(foofoo)),)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,)), /**/testsa)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,))/* */ , /**/testsa)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,))/*
|
||||
*/ ,testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), /**/testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), /*
|
||||
*/testsa)
|
||||
|
||||
useCallable("B", "C", Callable {
|
||||
println("Hello world")
|
||||
}, /* */ Callable {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(Callable { println("Hello world") } // ffd
|
||||
)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") }
|
||||
},)
|
||||
|
||||
useCallable(foo() { println("Hello world")
|
||||
},)
|
||||
|
||||
useCallable({
|
||||
println("Hello world") },)
|
||||
|
||||
useCallable(Callable { println("Hello world") }
|
||||
,)
|
||||
|
||||
testtest(foofoo, testtest(testtest(
|
||||
foofoo,)), testsa)
|
||||
|
||||
testtest(foofoo, fososos, testtest(testtest(foofoo))
|
||||
,)
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
baz(
|
||||
f = fun(it: Int): String = "$it" /*dwdwd
|
||||
*/,
|
||||
name = "" /*
|
||||
*/,
|
||||
)
|
||||
}
|
||||
Vendored
+112
@@ -0,0 +1,112 @@
|
||||
@Anno([1])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1,2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, 2, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, 2 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2, 2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2, 2,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno(["1"
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 , 2 , 2 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1/*
|
||||
*/])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, //dw
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1 // ds
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([/*
|
||||
*/ // d
|
||||
1/*
|
||||
*/,/*
|
||||
*/ ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
/*
|
||||
*/ 1 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1/*
|
||||
*/,2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2/*
|
||||
*/,/*
|
||||
*/])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([/*
|
||||
*/1, 2
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno(["1"
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 , 2 /*
|
||||
*/ ])
|
||||
fun a() = Unit
|
||||
|
||||
@Component(
|
||||
modules = [
|
||||
AppModule::class, DataModule::class,
|
||||
DomainModule::class
|
||||
],
|
||||
)
|
||||
fun b() = Unit
|
||||
Vendored
+64
@@ -0,0 +1,64 @@
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x,
|
||||
y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (
|
||||
x,
|
||||
y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (
|
||||
x // adw
|
||||
,y,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x /* val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}*/,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y/**/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y/*
|
||||
*/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (/**/x /**/ /*
|
||||
*/, // awdawd
|
||||
y/*
|
||||
*/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = {
|
||||
(/**/x /**/ /*
|
||||
*/, // awdawd
|
||||
y/*
|
||||
*/),
|
||||
z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y,),
|
||||
z, ->
|
||||
println(x)
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
enum class Enum1 {
|
||||
A, B,;
|
||||
}
|
||||
|
||||
enum class Enum2 {
|
||||
A, B;
|
||||
}
|
||||
|
||||
enum class Enum3 {
|
||||
A, B
|
||||
;
|
||||
}
|
||||
|
||||
enum class Enum4 {
|
||||
A, B,
|
||||
}
|
||||
|
||||
enum class Enum5 {
|
||||
A, B,
|
||||
}
|
||||
|
||||
enum class Enum6(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B,
|
||||
}
|
||||
|
||||
enum class Enum7(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B,;
|
||||
}
|
||||
|
||||
enum class Enum8(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B;
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
fun foo() {
|
||||
testtest[foofoo, foofoo, foofoo,
|
||||
foofoo, bar]
|
||||
|
||||
testtest[
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
]
|
||||
|
||||
testtest[foofoo
|
||||
]
|
||||
|
||||
testtest[
|
||||
foofoo]
|
||||
|
||||
testtest[
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo]]]
|
||||
|
||||
testtest[foofoo, fososos,
|
||||
testtest[testtest[foofoo]],]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]], testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], testsa]
|
||||
|
||||
useCallable["A", Callable { println["Hello world"] }]
|
||||
|
||||
useCallable["B", "C", Callable {
|
||||
println["Hello world"]
|
||||
}, Callable {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }]
|
||||
|
||||
useCallable[Callable { println["Hello world"] },]
|
||||
|
||||
useCallable[Callable {
|
||||
println["Hello world"] },]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }
|
||||
]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }]{
|
||||
|
||||
}
|
||||
|
||||
useCallable[
|
||||
Callable { println["Hello world"] }]
|
||||
|
||||
useCallable["A", { println["Hello world"] }]
|
||||
|
||||
useCallable["B", "C", {
|
||||
println["Hello world"]
|
||||
}, {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[{ println["Hello world"] }]
|
||||
|
||||
useCallable[{ println["Hello world"] },]
|
||||
|
||||
useCallable[{ println["Hello world"] }
|
||||
,]
|
||||
|
||||
useCallable[{ println["Hello world"] }
|
||||
]
|
||||
|
||||
useCallable[
|
||||
{ println["Hello world"] }]
|
||||
|
||||
useCallable["A", object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
useCallable["A", object : Callable<Unit> {
|
||||
override fun call() {
|
||||
println["Hello world"]
|
||||
}
|
||||
}]
|
||||
|
||||
useCallable["B", "C", object : Callable<Unit> { override fun call() { println["Hello world"] } }, foo[0,]]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } },]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }
|
||||
]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }] {
|
||||
|
||||
}
|
||||
|
||||
useCallable[
|
||||
object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
testtest[
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
]
|
||||
|
||||
testtest[/*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
]
|
||||
|
||||
testtest[foofoo // fd
|
||||
]
|
||||
|
||||
testtest[ /**/
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,/**/]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
]
|
||||
|
||||
testtest[foofoo // fd
|
||||
]
|
||||
|
||||
testtest[ /**/
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,/**/]
|
||||
|
||||
testtest[foofoo, fososos,/*
|
||||
*/ testtest[testtest[foofoo]],]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]], /**/testsa]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]]/* */ , /**/testsa]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]]/*
|
||||
*/ ,testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], /**/testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], /*
|
||||
*/testsa]
|
||||
|
||||
useCallable["B", "C", Callable {
|
||||
println["Hello world"]
|
||||
}, /* */ Callable {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[Callable { println["Hello world"] } // ffd
|
||||
]
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>,
|
||||
y: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: Comparable<Comparable<Number>>, y: String->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: String, y
|
||||
: String->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: Comparable<Comparable<Number>>,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>,
|
||||
y: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String ,
|
||||
y: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String ,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x, y: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String, z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
z: String, v: Comparable<Comparable<Number>>,
|
||||
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: String,
|
||||
y: Comparable<Comparable<Number>>,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Int
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String
|
||||
, /* */ z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String
|
||||
->
|
||||
println("1")
|
||||
}()
|
||||
|
||||
val x = {
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String ,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>, y: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String, z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
fun main() {
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: Iterable<Iterable<Number>> // trailing comma
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: Iterable<Iterable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>,
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>, //
|
||||
z: Iterable<Iterable<Number>> // /**/
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>
|
||||
// wd
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>/*
|
||||
*/, z: Iterable<Iterable<Number>>, /* //
|
||||
*/) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (/**/y: Comparable<Comparable<Number>>/**/) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>/**/,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: ( /*
|
||||
*/y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
}
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
fun test() {
|
||||
val (a, b) = 1 to 2
|
||||
|
||||
val (a, b) = 1 to
|
||||
2
|
||||
|
||||
val (a, b) = 1
|
||||
to
|
||||
2
|
||||
|
||||
|
||||
val (a, b,) = 1 to 2
|
||||
|
||||
val (a,) =
|
||||
b
|
||||
|
||||
val (a,
|
||||
) =
|
||||
b
|
||||
|
||||
val (a
|
||||
) =
|
||||
b
|
||||
|
||||
val (a,) = b
|
||||
|
||||
val (
|
||||
a,) = b
|
||||
|
||||
val (a, b
|
||||
) = 1 to 2
|
||||
|
||||
val (a,
|
||||
b) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b
|
||||
) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b,
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f,
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b/**/) = 1 to 2
|
||||
|
||||
val (a, /**/b/**/) /**/=/**/ 1 to
|
||||
2
|
||||
|
||||
val (a,/**/ b) = 1
|
||||
to
|
||||
2
|
||||
|
||||
val (a, b/**/,) = 1 to 2
|
||||
|
||||
val (a/**/, b/**/,/**/) = 1 to 2
|
||||
|
||||
val (a/**/,/**/) =
|
||||
b
|
||||
|
||||
val (a,) = b
|
||||
|
||||
val (a, b/**/
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b// awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a,/**/ b /**/ // awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a, // ad
|
||||
/**/b) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b // fe
|
||||
/**/)/**/ = 1 to 2
|
||||
|
||||
val (
|
||||
a, b, // awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f // awd
|
||||
/*
|
||||
*/) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f // awd
|
||||
,
|
||||
) = 1 to 2
|
||||
}
|
||||
@@ -0,0 +1,458 @@
|
||||
class A1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class B1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class C1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class D1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String
|
||||
,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class A2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class B2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class C2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class D2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class A3 {
|
||||
val x: String
|
||||
|
||||
constructor(x: String,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class B3 {
|
||||
val x: String
|
||||
|
||||
constructor(x: String) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class C3 {
|
||||
val x: String
|
||||
|
||||
constructor(
|
||||
x: String,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class D3 {
|
||||
val x: String
|
||||
|
||||
constructor(
|
||||
x: String
|
||||
,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class E1 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String, z: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class E2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String, z: String) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
class A1(
|
||||
val x: String,
|
||||
y: String,
|
||||
)
|
||||
|
||||
class B1(
|
||||
val x: String,
|
||||
val y: String
|
||||
)
|
||||
|
||||
class C1(
|
||||
val x: String,
|
||||
val y: String,)
|
||||
|
||||
class D1(
|
||||
val x: String,
|
||||
val y: String
|
||||
,)
|
||||
|
||||
class A2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String,
|
||||
)
|
||||
|
||||
class B2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
)
|
||||
|
||||
class C2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String,)
|
||||
|
||||
class D2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
,)
|
||||
|
||||
class A3(
|
||||
val x: String,
|
||||
)
|
||||
|
||||
class B3(
|
||||
val x: String
|
||||
)
|
||||
|
||||
class C3(
|
||||
val x: String,)
|
||||
|
||||
class D3(
|
||||
val x: String
|
||||
,)
|
||||
|
||||
class A4(
|
||||
val x: String ,
|
||||
val y: String,
|
||||
val z: String ,
|
||||
)
|
||||
|
||||
class B4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
)
|
||||
|
||||
class C4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String ,)
|
||||
|
||||
class D4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class E1(
|
||||
val x: String, val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class E2(
|
||||
val x: String, val y: String, val z: String
|
||||
)
|
||||
|
||||
class C(
|
||||
z: String, val v: Int, val x: Int =
|
||||
42, val y: Int =
|
||||
42
|
||||
)
|
||||
|
||||
val foo1: (Int, Int) -> Int = fun(
|
||||
x,
|
||||
y,
|
||||
): Int = 42
|
||||
|
||||
val foo2: (Int, Int) -> Int = fun(
|
||||
x,
|
||||
y
|
||||
): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo3: (Int, Int) -> Int = fun(
|
||||
x, y,
|
||||
): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo4: (Int) -> Int = fun(
|
||||
x,
|
||||
): Int = 42
|
||||
|
||||
val foo5: (Int) -> Int = fun(
|
||||
x
|
||||
): Int = 42
|
||||
|
||||
val foo6: (Int) -> Int = fun(x,): Int = 42
|
||||
|
||||
val foo7: (Int) -> Int = fun(x): Int = 42
|
||||
|
||||
val foo8: (Int, Int, Int) -> Int = fun (x, y: Int, z,): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo9: (Int, Int, Int) -> Int = fun (
|
||||
x,
|
||||
y: Int,
|
||||
z,
|
||||
): Int = 42
|
||||
|
||||
val foo10: (Int, Int, Int) -> Int = fun (
|
||||
x,
|
||||
y: Int,
|
||||
z: Int
|
||||
): Int = 43
|
||||
|
||||
val foo10 = fun (
|
||||
x: Int,
|
||||
y: Int,
|
||||
z: Int
|
||||
): Int = 43
|
||||
|
||||
val foo11 = fun (
|
||||
x: Int,
|
||||
y: Int,
|
||||
z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo12 = fun (
|
||||
x: Int, y: Int, z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo13 = fun (x: Int, y: Int, z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo14 = fun (x: Int, y: Int, z: Int
|
||||
,): Int = 43
|
||||
|
||||
fun a1(
|
||||
x: String,
|
||||
y: String,
|
||||
) = Unit
|
||||
|
||||
fun b1(
|
||||
x: String,
|
||||
y: String
|
||||
) = Unit
|
||||
|
||||
fun c1(
|
||||
x: String,
|
||||
y: String,) = Unit
|
||||
|
||||
fun d1(
|
||||
x: String,
|
||||
y: String
|
||||
,) = Unit
|
||||
|
||||
fun a2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
) = Unit
|
||||
|
||||
fun b2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) = Unit
|
||||
|
||||
fun c2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,) = Unit
|
||||
|
||||
fun d2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,) = Unit
|
||||
|
||||
fun a3(
|
||||
x: String,
|
||||
) = Unit
|
||||
|
||||
fun b3(
|
||||
x: String
|
||||
) = Unit
|
||||
|
||||
fun c3(
|
||||
x: String,) = Unit
|
||||
|
||||
fun d3(
|
||||
x: String
|
||||
,) = Unit
|
||||
|
||||
fun a4(
|
||||
x: String
|
||||
,
|
||||
y: String,
|
||||
z: String ,
|
||||
) = Unit
|
||||
|
||||
fun b4(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) = Unit
|
||||
|
||||
fun c4(x: String,
|
||||
y: String,
|
||||
z: String ,) = Unit
|
||||
|
||||
fun d4(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
, ) = Unit
|
||||
|
||||
fun foo(
|
||||
x: Int =
|
||||
42
|
||||
) {
|
||||
}
|
||||
|
||||
class C(
|
||||
val x: Int =
|
||||
42
|
||||
)
|
||||
|
||||
class G(
|
||||
val x: String, val y: String
|
||||
= "", /* */ val z: String
|
||||
)
|
||||
|
||||
class G(
|
||||
val x: String, val y: String
|
||||
= "" /* */, /* */ val z: String
|
||||
)
|
||||
|
||||
class H(
|
||||
val x: String, /*
|
||||
*/ val y: String,
|
||||
val z: String ,)
|
||||
|
||||
class J(
|
||||
val x: String, val y: String , val z: String /*
|
||||
*/
|
||||
, )
|
||||
|
||||
class K(
|
||||
val x: String, val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class L(
|
||||
val x: String, val y: String, val z: String // adwd
|
||||
)
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
fun foo() {
|
||||
testtest<foofoo,
|
||||
testtest<testtest<
|
||||
foofoo,
|
||||
>,
|
||||
>,
|
||||
testsa,
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo,
|
||||
foofoo, bar>()
|
||||
|
||||
testtest<
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
>()
|
||||
|
||||
testtest<foofoo
|
||||
>()
|
||||
|
||||
testtest<
|
||||
foofoo>()
|
||||
|
||||
testtest<
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo>>>()
|
||||
|
||||
testtest<foofoo, fososos, testtest<testtest<foofoo>>,>()
|
||||
|
||||
testtest<foofoo, fososos, testtest<testtest<foofoo>>
|
||||
,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>, testsa>()
|
||||
|
||||
testtest<foofoo, *, testtest<testtest<foofoo,>>, testsa>()
|
||||
|
||||
testtest<
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
>()
|
||||
|
||||
testtest</*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
>()
|
||||
|
||||
testtest<foofoo // fd
|
||||
>()
|
||||
|
||||
testtest< /**/
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,/**/>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
>()
|
||||
|
||||
testtest<foofoo // fd
|
||||
>()
|
||||
|
||||
testtest< /**/
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,/**/>()
|
||||
|
||||
testtest<foofoo,/*
|
||||
*/>()
|
||||
|
||||
testtest<
|
||||
foofoo,/**/>()
|
||||
|
||||
testtest<foofoo, fososos,/*
|
||||
*/ testtest<testtest<foofoo>>,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>, /**/testsa>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>/* */ , /**/testsa>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>/*
|
||||
*/ ,testsa>()
|
||||
|
||||
testtest<foofoo, seee, testtest<testtest<foofoo,>>, /**/testsa>()
|
||||
|
||||
testtest<foofoo, seee, testtest<testtest<foofoo,>>, /*
|
||||
*/testsa>()
|
||||
}
|
||||
+261
@@ -0,0 +1,261 @@
|
||||
class A1<
|
||||
x: String,
|
||||
y: String,
|
||||
>
|
||||
|
||||
class F<x: String, y: String>
|
||||
|
||||
class F2<x: String, y
|
||||
: String>
|
||||
|
||||
class B1<
|
||||
x: String,
|
||||
y: String
|
||||
>
|
||||
|
||||
class C1<
|
||||
x: String,
|
||||
y: String,>
|
||||
|
||||
class D1<
|
||||
x: String,
|
||||
y: String
|
||||
,>
|
||||
|
||||
class A2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
>
|
||||
|
||||
class B2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
>
|
||||
|
||||
class C2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,>
|
||||
|
||||
class D2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,>
|
||||
|
||||
class A3<
|
||||
x: String,
|
||||
>
|
||||
|
||||
class B3<
|
||||
x: String
|
||||
>
|
||||
|
||||
class C3<
|
||||
x: String,>
|
||||
|
||||
class D3<
|
||||
x: String
|
||||
,>
|
||||
|
||||
class A4<
|
||||
x: String ,
|
||||
y: String,
|
||||
z ,
|
||||
>
|
||||
|
||||
class B4<
|
||||
x: String,
|
||||
y,
|
||||
z: String
|
||||
>
|
||||
|
||||
class C4<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String ,>
|
||||
|
||||
class D4<
|
||||
x: String,
|
||||
y,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class E1<
|
||||
x, y: String,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class E2<
|
||||
x: String, y: String, z: String
|
||||
>
|
||||
|
||||
class C<
|
||||
z: String, v
|
||||
|
||||
>
|
||||
|
||||
fun <x: String,
|
||||
y: String,
|
||||
> a1() = Unit
|
||||
|
||||
fun <x: String,
|
||||
y: String
|
||||
> b1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,> c1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String
|
||||
,> d1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
> a2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
> b2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,> c2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,> d2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
> a3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
> b3() = Unit
|
||||
|
||||
fun <
|
||||
x: String,> c3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
,> d3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
,
|
||||
y: String,
|
||||
z: String ,
|
||||
> a4() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
> b4() = Unit
|
||||
|
||||
fun <x: String,
|
||||
y: String,
|
||||
z: String ,> c4() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
, > d4() = Unit
|
||||
|
||||
fun <
|
||||
x
|
||||
> foo() {
|
||||
}
|
||||
|
||||
fun <T> ag() {
|
||||
|
||||
}
|
||||
|
||||
fun <T,> ag() {
|
||||
|
||||
}
|
||||
|
||||
fun <
|
||||
T> ag() {
|
||||
|
||||
}
|
||||
|
||||
class C<
|
||||
x: Int
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
, /* */ z: String
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String
|
||||
>()
|
||||
|
||||
class H<
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String ,>
|
||||
|
||||
class J<
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, >
|
||||
|
||||
class K<
|
||||
x: String, y: String,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class L<
|
||||
x: String, y: String, z: String
|
||||
>
|
||||
|
||||
class C<
|
||||
x: Int // adad
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
, /* */ z: String // adad
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String /**/,
|
||||
>()
|
||||
|
||||
class H<
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String /*
|
||||
*/ ,>
|
||||
|
||||
class J<
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, /**/ >
|
||||
|
||||
class K<
|
||||
x: String, y: String,
|
||||
z: String // aw
|
||||
, >
|
||||
|
||||
class L<
|
||||
x: String, y: String, z: String //awd
|
||||
>
|
||||
@@ -0,0 +1,75 @@
|
||||
fun foo(x: Any) = when (x) {
|
||||
Comparable::class, Iterable::class, String::class, // trailing comma
|
||||
-> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
fun foo(x: Any) {
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class, String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class,
|
||||
String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class,
|
||||
String::class /*// trailing comma*/, -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class, String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1 -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1, -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1
|
||||
-> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1, 2,
|
||||
3 /**/ -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (val c = x) {
|
||||
1, 2,
|
||||
3 /**/ -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when {
|
||||
x in coll
|
||||
-> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
}
|
||||
+740
@@ -0,0 +1,740 @@
|
||||
<problems>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>26</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>30</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>32</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>34</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>46</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>68</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>90</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>116</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>159</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>172</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>177</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>179</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>181</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>184</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>186</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>221</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>223</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>4</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>22</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>40</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>70</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>84</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>1</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>1</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>5</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>22</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>28</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>32</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>36</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>61</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>26</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>33</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>35</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>47</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>72</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>91</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>95</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>138</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>151</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>156</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>158</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>160</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>163</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>165</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaParameterList.kt</file>
|
||||
<line>81</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaParameterList.kt</file>
|
||||
<line>175</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>20</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>33</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>61</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>70</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>12</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>14</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>25</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>61</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>63</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>65</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>68</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>97</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>118</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>298</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>302</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>449</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>34</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>38</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>43</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>45</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>78</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>91</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>102</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>104</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>106</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>109</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>111</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>187</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>218</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>240</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>240</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>247</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>252</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>257</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>WhenEntry.kt</file>
|
||||
<line>21</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="WhenEntry.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>WhenEntry.kt</file>
|
||||
<line>38</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="WhenEntry.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
</problems>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.TrailingCommaInspection
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-TrailingCommas
|
||||
// SET_FALSE: ALLOW_TRAILING_COMMA
|
||||
@@ -0,0 +1,225 @@
|
||||
fun foo() {
|
||||
testtest(foofoo, foofoo, foofoo,
|
||||
foofoo, bar)
|
||||
|
||||
testtest(
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
)
|
||||
|
||||
testtest(foofoo
|
||||
)
|
||||
|
||||
testtest(
|
||||
foofoo)
|
||||
|
||||
testtest(
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo)))
|
||||
|
||||
testtest(foofoo, fososos, testtest(testtest(foofoo)),)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,)), testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), testsa)
|
||||
|
||||
useCallable("A", Callable { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", Callable {
|
||||
println("Hello world")
|
||||
}, Callable {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(Callable { println("Hello world") })
|
||||
|
||||
useCallable(Callable { println("Hello world") },)
|
||||
|
||||
useCallable(Callable { println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable(Callable { println("Hello world") }){
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
Callable { println("Hello world") })
|
||||
|
||||
useCallable("A", { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", {
|
||||
println("Hello world")
|
||||
}, {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable({ println("Hello world") })
|
||||
|
||||
useCallable({ println("Hello world") },)
|
||||
|
||||
useCallable({ println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable({ println("Hello world") }){
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
{ println("Hello world") })
|
||||
|
||||
useCallable("A", foo() { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", foo() {
|
||||
println("Hello world")
|
||||
}, foo() {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(foo() { println("Hello world") })
|
||||
|
||||
useCallable(foo() { println("Hello world") },)
|
||||
|
||||
useCallable(foo() { println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable(foo() { println("Hello world") }) {
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
foo() { println("Hello world") })
|
||||
|
||||
useCallable("A", object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
useCallable("A", object : Callable<Unit> {
|
||||
override fun call() {
|
||||
println("Hello world")
|
||||
}
|
||||
})
|
||||
|
||||
useCallable("B", "C", object : Callable<Unit> { override fun call() { println("Hello world") } }, foo() {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } },)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } }
|
||||
)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } }) {
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
testtest(
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
)
|
||||
|
||||
testtest(/*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
)
|
||||
|
||||
testtest(foofoo // fd
|
||||
)
|
||||
|
||||
testtest( /**/
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,/**/)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
)
|
||||
|
||||
testtest(foofoo // fd
|
||||
)
|
||||
|
||||
testtest( /**/
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,/**/)
|
||||
|
||||
testtest(foofoo, fososos,/*
|
||||
*/ testtest(testtest(foofoo)),)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,)), /**/testsa)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,))/* */ , /**/testsa)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,))/*
|
||||
*/ ,testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), /**/testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), /*
|
||||
*/testsa)
|
||||
|
||||
useCallable("B", "C", Callable {
|
||||
println("Hello world")
|
||||
}, /* */ Callable {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(Callable { println("Hello world") } // ffd
|
||||
)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") }
|
||||
},)
|
||||
|
||||
useCallable(foo() { println("Hello world")
|
||||
},)
|
||||
|
||||
useCallable({
|
||||
println("Hello world") },)
|
||||
|
||||
useCallable(Callable { println("Hello world") }
|
||||
,)
|
||||
|
||||
testtest(foofoo, testtest(testtest(
|
||||
foofoo,)), testsa)
|
||||
|
||||
testtest(foofoo, fososos, testtest(testtest(foofoo))
|
||||
,)
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
baz(
|
||||
f = fun(it: Int): String = "$it" /*dwdwd
|
||||
*/,
|
||||
name = "" /*
|
||||
*/,
|
||||
)
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
@Anno([1])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1,2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, 2, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, 2 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2, 2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2, 2,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno(["1"
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 , 2 , 2 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1/*
|
||||
*/])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, //dw
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1 // ds
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([/*
|
||||
*/ // d
|
||||
1/*
|
||||
*/,/*
|
||||
*/ ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
/*
|
||||
*/ 1 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1/*
|
||||
*/,2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2/*
|
||||
*/,/*
|
||||
*/])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([/*
|
||||
*/1, 2
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno(["1"
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 , 2 /*
|
||||
*/ ])
|
||||
fun a() = Unit
|
||||
|
||||
@Component(
|
||||
modules = [
|
||||
AppModule::class, DataModule::class,
|
||||
DomainModule::class
|
||||
],
|
||||
)
|
||||
fun b() = Unit
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x,
|
||||
y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (
|
||||
x,
|
||||
y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (
|
||||
x // adw
|
||||
,y,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x /* val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}*/,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y/**/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y/*
|
||||
*/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (/**/x /**/ /*
|
||||
*/, // awdawd
|
||||
y/*
|
||||
*/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = {
|
||||
(/**/x /**/ /*
|
||||
*/, // awdawd
|
||||
y/*
|
||||
*/),
|
||||
z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y,),
|
||||
z, ->
|
||||
println(x)
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
enum class Enum1 {
|
||||
A, B,;
|
||||
}
|
||||
|
||||
enum class Enum2 {
|
||||
A, B;
|
||||
}
|
||||
|
||||
enum class Enum3 {
|
||||
A, B
|
||||
;
|
||||
}
|
||||
|
||||
enum class Enum4 {
|
||||
A, B,
|
||||
}
|
||||
|
||||
enum class Enum5 {
|
||||
A, B,
|
||||
}
|
||||
|
||||
enum class Enum6(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B,
|
||||
}
|
||||
|
||||
enum class Enum7(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B,;
|
||||
}
|
||||
|
||||
enum class Enum8(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B;
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
fun foo() {
|
||||
testtest[foofoo, foofoo, foofoo,
|
||||
foofoo, bar]
|
||||
|
||||
testtest[
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
]
|
||||
|
||||
testtest[foofoo
|
||||
]
|
||||
|
||||
testtest[
|
||||
foofoo]
|
||||
|
||||
testtest[
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo]]]
|
||||
|
||||
testtest[foofoo, fososos,
|
||||
testtest[testtest[foofoo]],]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]], testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], testsa]
|
||||
|
||||
useCallable["A", Callable { println["Hello world"] }]
|
||||
|
||||
useCallable["B", "C", Callable {
|
||||
println["Hello world"]
|
||||
}, Callable {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }]
|
||||
|
||||
useCallable[Callable { println["Hello world"] },]
|
||||
|
||||
useCallable[Callable {
|
||||
println["Hello world"] },]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }
|
||||
]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }]{
|
||||
|
||||
}
|
||||
|
||||
useCallable[
|
||||
Callable { println["Hello world"] }]
|
||||
|
||||
useCallable["A", { println["Hello world"] }]
|
||||
|
||||
useCallable["B", "C", {
|
||||
println["Hello world"]
|
||||
}, {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[{ println["Hello world"] }]
|
||||
|
||||
useCallable[{ println["Hello world"] },]
|
||||
|
||||
useCallable[{ println["Hello world"] }
|
||||
,]
|
||||
|
||||
useCallable[{ println["Hello world"] }
|
||||
]
|
||||
|
||||
useCallable[
|
||||
{ println["Hello world"] }]
|
||||
|
||||
useCallable["A", object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
useCallable["A", object : Callable<Unit> {
|
||||
override fun call() {
|
||||
println["Hello world"]
|
||||
}
|
||||
}]
|
||||
|
||||
useCallable["B", "C", object : Callable<Unit> { override fun call() { println["Hello world"] } }, foo[0,]]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } },]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }
|
||||
]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }] {
|
||||
|
||||
}
|
||||
|
||||
useCallable[
|
||||
object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
testtest[
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
]
|
||||
|
||||
testtest[/*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
]
|
||||
|
||||
testtest[foofoo // fd
|
||||
]
|
||||
|
||||
testtest[ /**/
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,/**/]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
]
|
||||
|
||||
testtest[foofoo // fd
|
||||
]
|
||||
|
||||
testtest[ /**/
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,/**/]
|
||||
|
||||
testtest[foofoo, fososos,/*
|
||||
*/ testtest[testtest[foofoo]],]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]], /**/testsa]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]]/* */ , /**/testsa]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]]/*
|
||||
*/ ,testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], /**/testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], /*
|
||||
*/testsa]
|
||||
|
||||
useCallable["B", "C", Callable {
|
||||
println["Hello world"]
|
||||
}, /* */ Callable {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[Callable { println["Hello world"] } // ffd
|
||||
]
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>,
|
||||
y: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: Comparable<Comparable<Number>>, y: String->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: String, y
|
||||
: String->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: Comparable<Comparable<Number>>,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>,
|
||||
y: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String ,
|
||||
y: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String ,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x, y: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String, z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
z: String, v: Comparable<Comparable<Number>>,
|
||||
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: String,
|
||||
y: Comparable<Comparable<Number>>,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Int
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String
|
||||
, /* */ z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String
|
||||
->
|
||||
println("1")
|
||||
}()
|
||||
|
||||
val x = {
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String ,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>, y: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String, z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
fun main() {
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: Iterable<Iterable<Number>> // trailing comma
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: Iterable<Iterable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>,
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>, //
|
||||
z: Iterable<Iterable<Number>> // /**/
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>
|
||||
// wd
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>/*
|
||||
*/, z: Iterable<Iterable<Number>>, /* //
|
||||
*/) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (/**/y: Comparable<Comparable<Number>>/**/) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>/**/,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: ( /*
|
||||
*/y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
}
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
fun test() {
|
||||
val (a, b) = 1 to 2
|
||||
|
||||
val (a, b) = 1 to
|
||||
2
|
||||
|
||||
val (a, b) = 1
|
||||
to
|
||||
2
|
||||
|
||||
|
||||
val (a, b,) = 1 to 2
|
||||
|
||||
val (a,) =
|
||||
b
|
||||
|
||||
val (a,
|
||||
) =
|
||||
b
|
||||
|
||||
val (a
|
||||
) =
|
||||
b
|
||||
|
||||
val (a,) = b
|
||||
|
||||
val (
|
||||
a,) = b
|
||||
|
||||
val (a, b
|
||||
) = 1 to 2
|
||||
|
||||
val (a,
|
||||
b) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b
|
||||
) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b,
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f,
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b/**/) = 1 to 2
|
||||
|
||||
val (a, /**/b/**/) /**/=/**/ 1 to
|
||||
2
|
||||
|
||||
val (a,/**/ b) = 1
|
||||
to
|
||||
2
|
||||
|
||||
val (a, b/**/,) = 1 to 2
|
||||
|
||||
val (a/**/, b/**/,/**/) = 1 to 2
|
||||
|
||||
val (a/**/,/**/) =
|
||||
b
|
||||
|
||||
val (a,) = b
|
||||
|
||||
val (a, b/**/
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b// awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a,/**/ b /**/ // awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a, // ad
|
||||
/**/b) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b // fe
|
||||
/**/)/**/ = 1 to 2
|
||||
|
||||
val (
|
||||
a, b, // awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f // awd
|
||||
/*
|
||||
*/) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f // awd
|
||||
,
|
||||
) = 1 to 2
|
||||
}
|
||||
@@ -0,0 +1,458 @@
|
||||
class A1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class B1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class C1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class D1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String
|
||||
,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class A2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class B2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class C2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class D2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class A3 {
|
||||
val x: String
|
||||
|
||||
constructor(x: String,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class B3 {
|
||||
val x: String
|
||||
|
||||
constructor(x: String) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class C3 {
|
||||
val x: String
|
||||
|
||||
constructor(
|
||||
x: String,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class D3 {
|
||||
val x: String
|
||||
|
||||
constructor(
|
||||
x: String
|
||||
,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class E1 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String, z: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class E2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String, z: String) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
class A1(
|
||||
val x: String,
|
||||
y: String,
|
||||
)
|
||||
|
||||
class B1(
|
||||
val x: String,
|
||||
val y: String
|
||||
)
|
||||
|
||||
class C1(
|
||||
val x: String,
|
||||
val y: String,)
|
||||
|
||||
class D1(
|
||||
val x: String,
|
||||
val y: String
|
||||
,)
|
||||
|
||||
class A2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String,
|
||||
)
|
||||
|
||||
class B2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
)
|
||||
|
||||
class C2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String,)
|
||||
|
||||
class D2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
,)
|
||||
|
||||
class A3(
|
||||
val x: String,
|
||||
)
|
||||
|
||||
class B3(
|
||||
val x: String
|
||||
)
|
||||
|
||||
class C3(
|
||||
val x: String,)
|
||||
|
||||
class D3(
|
||||
val x: String
|
||||
,)
|
||||
|
||||
class A4(
|
||||
val x: String ,
|
||||
val y: String,
|
||||
val z: String ,
|
||||
)
|
||||
|
||||
class B4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
)
|
||||
|
||||
class C4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String ,)
|
||||
|
||||
class D4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class E1(
|
||||
val x: String, val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class E2(
|
||||
val x: String, val y: String, val z: String
|
||||
)
|
||||
|
||||
class C(
|
||||
z: String, val v: Int, val x: Int =
|
||||
42, val y: Int =
|
||||
42
|
||||
)
|
||||
|
||||
val foo1: (Int, Int) -> Int = fun(
|
||||
x,
|
||||
y,
|
||||
): Int = 42
|
||||
|
||||
val foo2: (Int, Int) -> Int = fun(
|
||||
x,
|
||||
y
|
||||
): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo3: (Int, Int) -> Int = fun(
|
||||
x, y,
|
||||
): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo4: (Int) -> Int = fun(
|
||||
x,
|
||||
): Int = 42
|
||||
|
||||
val foo5: (Int) -> Int = fun(
|
||||
x
|
||||
): Int = 42
|
||||
|
||||
val foo6: (Int) -> Int = fun(x,): Int = 42
|
||||
|
||||
val foo7: (Int) -> Int = fun(x): Int = 42
|
||||
|
||||
val foo8: (Int, Int, Int) -> Int = fun (x, y: Int, z,): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo9: (Int, Int, Int) -> Int = fun (
|
||||
x,
|
||||
y: Int,
|
||||
z,
|
||||
): Int = 42
|
||||
|
||||
val foo10: (Int, Int, Int) -> Int = fun (
|
||||
x,
|
||||
y: Int,
|
||||
z: Int
|
||||
): Int = 43
|
||||
|
||||
val foo10 = fun (
|
||||
x: Int,
|
||||
y: Int,
|
||||
z: Int
|
||||
): Int = 43
|
||||
|
||||
val foo11 = fun (
|
||||
x: Int,
|
||||
y: Int,
|
||||
z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo12 = fun (
|
||||
x: Int, y: Int, z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo13 = fun (x: Int, y: Int, z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo14 = fun (x: Int, y: Int, z: Int
|
||||
,): Int = 43
|
||||
|
||||
fun a1(
|
||||
x: String,
|
||||
y: String,
|
||||
) = Unit
|
||||
|
||||
fun b1(
|
||||
x: String,
|
||||
y: String
|
||||
) = Unit
|
||||
|
||||
fun c1(
|
||||
x: String,
|
||||
y: String,) = Unit
|
||||
|
||||
fun d1(
|
||||
x: String,
|
||||
y: String
|
||||
,) = Unit
|
||||
|
||||
fun a2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
) = Unit
|
||||
|
||||
fun b2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) = Unit
|
||||
|
||||
fun c2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,) = Unit
|
||||
|
||||
fun d2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,) = Unit
|
||||
|
||||
fun a3(
|
||||
x: String,
|
||||
) = Unit
|
||||
|
||||
fun b3(
|
||||
x: String
|
||||
) = Unit
|
||||
|
||||
fun c3(
|
||||
x: String,) = Unit
|
||||
|
||||
fun d3(
|
||||
x: String
|
||||
,) = Unit
|
||||
|
||||
fun a4(
|
||||
x: String
|
||||
,
|
||||
y: String,
|
||||
z: String ,
|
||||
) = Unit
|
||||
|
||||
fun b4(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) = Unit
|
||||
|
||||
fun c4(x: String,
|
||||
y: String,
|
||||
z: String ,) = Unit
|
||||
|
||||
fun d4(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
, ) = Unit
|
||||
|
||||
fun foo(
|
||||
x: Int =
|
||||
42
|
||||
) {
|
||||
}
|
||||
|
||||
class C(
|
||||
val x: Int =
|
||||
42
|
||||
)
|
||||
|
||||
class G(
|
||||
val x: String, val y: String
|
||||
= "", /* */ val z: String
|
||||
)
|
||||
|
||||
class G(
|
||||
val x: String, val y: String
|
||||
= "" /* */, /* */ val z: String
|
||||
)
|
||||
|
||||
class H(
|
||||
val x: String, /*
|
||||
*/ val y: String,
|
||||
val z: String ,)
|
||||
|
||||
class J(
|
||||
val x: String, val y: String , val z: String /*
|
||||
*/
|
||||
, )
|
||||
|
||||
class K(
|
||||
val x: String, val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class L(
|
||||
val x: String, val y: String, val z: String // adwd
|
||||
)
|
||||
@@ -0,0 +1,113 @@
|
||||
fun foo() {
|
||||
testtest<foofoo,
|
||||
testtest<testtest<
|
||||
foofoo,
|
||||
>,
|
||||
>,
|
||||
testsa,
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo,
|
||||
foofoo, bar>()
|
||||
|
||||
testtest<
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
>()
|
||||
|
||||
testtest<foofoo
|
||||
>()
|
||||
|
||||
testtest<
|
||||
foofoo>()
|
||||
|
||||
testtest<
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo>>>()
|
||||
|
||||
testtest<foofoo, fososos, testtest<testtest<foofoo>>,>()
|
||||
|
||||
testtest<foofoo, fososos, testtest<testtest<foofoo>>
|
||||
,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>, testsa>()
|
||||
|
||||
testtest<foofoo, *, testtest<testtest<foofoo,>>, testsa>()
|
||||
|
||||
testtest<
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
>()
|
||||
|
||||
testtest</*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
>()
|
||||
|
||||
testtest<foofoo // fd
|
||||
>()
|
||||
|
||||
testtest< /**/
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,/**/>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
>()
|
||||
|
||||
testtest<foofoo // fd
|
||||
>()
|
||||
|
||||
testtest< /**/
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,/**/>()
|
||||
|
||||
testtest<foofoo,/*
|
||||
*/>()
|
||||
|
||||
testtest<
|
||||
foofoo,/**/>()
|
||||
|
||||
testtest<foofoo, fososos,/*
|
||||
*/ testtest<testtest<foofoo>>,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>, /**/testsa>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>/* */ , /**/testsa>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>/*
|
||||
*/ ,testsa>()
|
||||
|
||||
testtest<foofoo, seee, testtest<testtest<foofoo,>>, /**/testsa>()
|
||||
|
||||
testtest<foofoo, seee, testtest<testtest<foofoo,>>, /*
|
||||
*/testsa>()
|
||||
}
|
||||
@@ -0,0 +1,261 @@
|
||||
class A1<
|
||||
x: String,
|
||||
y: String,
|
||||
>
|
||||
|
||||
class F<x: String, y: String>
|
||||
|
||||
class F2<x: String, y
|
||||
: String>
|
||||
|
||||
class B1<
|
||||
x: String,
|
||||
y: String
|
||||
>
|
||||
|
||||
class C1<
|
||||
x: String,
|
||||
y: String,>
|
||||
|
||||
class D1<
|
||||
x: String,
|
||||
y: String
|
||||
,>
|
||||
|
||||
class A2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
>
|
||||
|
||||
class B2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
>
|
||||
|
||||
class C2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,>
|
||||
|
||||
class D2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,>
|
||||
|
||||
class A3<
|
||||
x: String,
|
||||
>
|
||||
|
||||
class B3<
|
||||
x: String
|
||||
>
|
||||
|
||||
class C3<
|
||||
x: String,>
|
||||
|
||||
class D3<
|
||||
x: String
|
||||
,>
|
||||
|
||||
class A4<
|
||||
x: String ,
|
||||
y: String,
|
||||
z ,
|
||||
>
|
||||
|
||||
class B4<
|
||||
x: String,
|
||||
y,
|
||||
z: String
|
||||
>
|
||||
|
||||
class C4<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String ,>
|
||||
|
||||
class D4<
|
||||
x: String,
|
||||
y,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class E1<
|
||||
x, y: String,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class E2<
|
||||
x: String, y: String, z: String
|
||||
>
|
||||
|
||||
class C<
|
||||
z: String, v
|
||||
|
||||
>
|
||||
|
||||
fun <x: String,
|
||||
y: String,
|
||||
> a1() = Unit
|
||||
|
||||
fun <x: String,
|
||||
y: String
|
||||
> b1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,> c1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String
|
||||
,> d1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
> a2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
> b2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,> c2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,> d2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
> a3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
> b3() = Unit
|
||||
|
||||
fun <
|
||||
x: String,> c3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
,> d3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
,
|
||||
y: String,
|
||||
z: String ,
|
||||
> a4() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
> b4() = Unit
|
||||
|
||||
fun <x: String,
|
||||
y: String,
|
||||
z: String ,> c4() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
, > d4() = Unit
|
||||
|
||||
fun <
|
||||
x
|
||||
> foo() {
|
||||
}
|
||||
|
||||
fun <T> ag() {
|
||||
|
||||
}
|
||||
|
||||
fun <T,> ag() {
|
||||
|
||||
}
|
||||
|
||||
fun <
|
||||
T> ag() {
|
||||
|
||||
}
|
||||
|
||||
class C<
|
||||
x: Int
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
, /* */ z: String
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String
|
||||
>()
|
||||
|
||||
class H<
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String ,>
|
||||
|
||||
class J<
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, >
|
||||
|
||||
class K<
|
||||
x: String, y: String,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class L<
|
||||
x: String, y: String, z: String
|
||||
>
|
||||
|
||||
class C<
|
||||
x: Int // adad
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
, /* */ z: String // adad
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String /**/,
|
||||
>()
|
||||
|
||||
class H<
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String /*
|
||||
*/ ,>
|
||||
|
||||
class J<
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, /**/ >
|
||||
|
||||
class K<
|
||||
x: String, y: String,
|
||||
z: String // aw
|
||||
, >
|
||||
|
||||
class L<
|
||||
x: String, y: String, z: String //awd
|
||||
>
|
||||
@@ -0,0 +1,75 @@
|
||||
fun foo(x: Any) = when (x) {
|
||||
Comparable::class, Iterable::class, String::class, // trailing comma
|
||||
-> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
fun foo(x: Any) {
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class, String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class,
|
||||
String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class,
|
||||
String::class /*// trailing comma*/, -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class, String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1 -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1, -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1
|
||||
-> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1, 2,
|
||||
3 /**/ -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (val c = x) {
|
||||
1, 2,
|
||||
3 /**/ -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when {
|
||||
x in coll
|
||||
-> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
}
|
||||
+2702
File diff suppressed because it is too large
Load Diff
+3
@@ -0,0 +1,3 @@
|
||||
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.TrailingCommaInspection
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// SET_TRUE: ALLOW_TRAILING_COMMA
|
||||
@@ -0,0 +1,225 @@
|
||||
fun foo() {
|
||||
testtest(foofoo, foofoo, foofoo,
|
||||
foofoo, bar)
|
||||
|
||||
testtest(
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
)
|
||||
|
||||
testtest(foofoo
|
||||
)
|
||||
|
||||
testtest(
|
||||
foofoo)
|
||||
|
||||
testtest(
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo)))
|
||||
|
||||
testtest(foofoo, fososos, testtest(testtest(foofoo)),)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,)), testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), testsa)
|
||||
|
||||
useCallable("A", Callable { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", Callable {
|
||||
println("Hello world")
|
||||
}, Callable {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(Callable { println("Hello world") })
|
||||
|
||||
useCallable(Callable { println("Hello world") },)
|
||||
|
||||
useCallable(Callable { println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable(Callable { println("Hello world") }){
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
Callable { println("Hello world") })
|
||||
|
||||
useCallable("A", { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", {
|
||||
println("Hello world")
|
||||
}, {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable({ println("Hello world") })
|
||||
|
||||
useCallable({ println("Hello world") },)
|
||||
|
||||
useCallable({ println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable({ println("Hello world") }){
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
{ println("Hello world") })
|
||||
|
||||
useCallable("A", foo() { println("Hello world") })
|
||||
|
||||
useCallable("B", "C", foo() {
|
||||
println("Hello world")
|
||||
}, foo() {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(foo() { println("Hello world") })
|
||||
|
||||
useCallable(foo() { println("Hello world") },)
|
||||
|
||||
useCallable(foo() { println("Hello world") }
|
||||
)
|
||||
|
||||
useCallable(foo() { println("Hello world") }) {
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
foo() { println("Hello world") })
|
||||
|
||||
useCallable("A", object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
useCallable("A", object : Callable<Unit> {
|
||||
override fun call() {
|
||||
println("Hello world")
|
||||
}
|
||||
})
|
||||
|
||||
useCallable("B", "C", object : Callable<Unit> { override fun call() { println("Hello world") } }, foo() {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } },)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } }
|
||||
)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") } }) {
|
||||
|
||||
}
|
||||
|
||||
useCallable(
|
||||
object : Callable<Unit> { override fun call() { println("Hello world") } })
|
||||
|
||||
testtest(
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
)
|
||||
|
||||
testtest(/*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
)
|
||||
|
||||
testtest(foofoo // fd
|
||||
)
|
||||
|
||||
testtest( /**/
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,/**/)
|
||||
|
||||
testtest(foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
)
|
||||
|
||||
testtest(foofoo // fd
|
||||
)
|
||||
|
||||
testtest( /**/
|
||||
foofoo
|
||||
)
|
||||
|
||||
testtest(foofoo,/**/)
|
||||
|
||||
testtest(foofoo, fososos,/*
|
||||
*/ testtest(testtest(foofoo)),)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,)), /**/testsa)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,))/* */ , /**/testsa)
|
||||
|
||||
testtest(foofoo, testtest(testtest(foofoo,))/*
|
||||
*/ ,testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), /**/testsa)
|
||||
|
||||
testtest(foofoo, seee, testtest(testtest(foofoo,)), /*
|
||||
*/testsa)
|
||||
|
||||
useCallable("B", "C", Callable {
|
||||
println("Hello world")
|
||||
}, /* */ Callable {
|
||||
println("Hello world")
|
||||
})
|
||||
|
||||
useCallable(Callable { println("Hello world") } // ffd
|
||||
)
|
||||
|
||||
useCallable(object : Callable<Unit> { override fun call() { println("Hello world") }
|
||||
},)
|
||||
|
||||
useCallable(foo() { println("Hello world")
|
||||
},)
|
||||
|
||||
useCallable({
|
||||
println("Hello world") },)
|
||||
|
||||
useCallable(Callable { println("Hello world") }
|
||||
,)
|
||||
|
||||
testtest(foofoo, testtest(testtest(
|
||||
foofoo,)), testsa)
|
||||
|
||||
testtest(foofoo, fososos, testtest(testtest(foofoo))
|
||||
,)
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
baz(
|
||||
f = fun(it: Int): String = "$it" /*dwdwd
|
||||
*/,
|
||||
name = "" /*
|
||||
*/,
|
||||
)
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
@Anno([1])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1,2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, 2, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, 2 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2, 2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2, 2,])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno(["1"
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 , 2 , 2 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1/*
|
||||
*/])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, //dw
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1 // ds
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([/*
|
||||
*/ // d
|
||||
1/*
|
||||
*/,/*
|
||||
*/ ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
/*
|
||||
*/ 1 ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1/*
|
||||
*/,2])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([1, 2/*
|
||||
*/,/*
|
||||
*/])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([/*
|
||||
*/1, 2
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno(["1"
|
||||
])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1, ])
|
||||
fun a() = Unit
|
||||
|
||||
@Anno([
|
||||
1 , 2 /*
|
||||
*/ ])
|
||||
fun a() = Unit
|
||||
|
||||
@Component(
|
||||
modules = [
|
||||
AppModule::class, DataModule::class,
|
||||
DomainModule::class
|
||||
],
|
||||
)
|
||||
fun b() = Unit
|
||||
Vendored
+64
@@ -0,0 +1,64 @@
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x,
|
||||
y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (
|
||||
x,
|
||||
y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (
|
||||
x // adw
|
||||
,y,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x /* val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}*/,), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y/**/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y/*
|
||||
*/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (/**/x /**/ /*
|
||||
*/, // awdawd
|
||||
y/*
|
||||
*/), z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = {
|
||||
(/**/x /**/ /*
|
||||
*/, // awdawd
|
||||
y/*
|
||||
*/),
|
||||
z, ->
|
||||
println(x)
|
||||
}
|
||||
|
||||
val x: (Pair<Int, Int>, Int) -> Unit = { (x, y,),
|
||||
z, ->
|
||||
println(x)
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
enum class Enum1 {
|
||||
A, B,;
|
||||
}
|
||||
|
||||
enum class Enum2 {
|
||||
A, B;
|
||||
}
|
||||
|
||||
enum class Enum3 {
|
||||
A, B
|
||||
;
|
||||
}
|
||||
|
||||
enum class Enum4 {
|
||||
A, B,
|
||||
}
|
||||
|
||||
enum class Enum5 {
|
||||
A, B,
|
||||
}
|
||||
|
||||
enum class Enum6(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B,
|
||||
}
|
||||
|
||||
enum class Enum7(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B,;
|
||||
}
|
||||
|
||||
enum class Enum8(val a: Int) {
|
||||
A(
|
||||
1
|
||||
), B;
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
fun foo() {
|
||||
testtest[foofoo, foofoo, foofoo,
|
||||
foofoo, bar]
|
||||
|
||||
testtest[
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
]
|
||||
|
||||
testtest[foofoo
|
||||
]
|
||||
|
||||
testtest[
|
||||
foofoo]
|
||||
|
||||
testtest[
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo]]]
|
||||
|
||||
testtest[foofoo, fososos,
|
||||
testtest[testtest[foofoo]],]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]], testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], testsa]
|
||||
|
||||
useCallable["A", Callable { println["Hello world"] }]
|
||||
|
||||
useCallable["B", "C", Callable {
|
||||
println["Hello world"]
|
||||
}, Callable {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }]
|
||||
|
||||
useCallable[Callable { println["Hello world"] },]
|
||||
|
||||
useCallable[Callable {
|
||||
println["Hello world"] },]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }
|
||||
]
|
||||
|
||||
useCallable[Callable { println["Hello world"] }]{
|
||||
|
||||
}
|
||||
|
||||
useCallable[
|
||||
Callable { println["Hello world"] }]
|
||||
|
||||
useCallable["A", { println["Hello world"] }]
|
||||
|
||||
useCallable["B", "C", {
|
||||
println["Hello world"]
|
||||
}, {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[{ println["Hello world"] }]
|
||||
|
||||
useCallable[{ println["Hello world"] },]
|
||||
|
||||
useCallable[{ println["Hello world"] }
|
||||
,]
|
||||
|
||||
useCallable[{ println["Hello world"] }
|
||||
]
|
||||
|
||||
useCallable[
|
||||
{ println["Hello world"] }]
|
||||
|
||||
useCallable["A", object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
useCallable["A", object : Callable<Unit> {
|
||||
override fun call() {
|
||||
println["Hello world"]
|
||||
}
|
||||
}]
|
||||
|
||||
useCallable["B", "C", object : Callable<Unit> { override fun call() { println["Hello world"] } }, foo[0,]]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } },]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }
|
||||
]
|
||||
|
||||
useCallable[object : Callable<Unit> { override fun call() { println["Hello world"] } }] {
|
||||
|
||||
}
|
||||
|
||||
useCallable[
|
||||
object : Callable<Unit> { override fun call() { println["Hello world"] } }]
|
||||
|
||||
testtest[
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
]
|
||||
|
||||
testtest[/*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
]
|
||||
|
||||
testtest[foofoo // fd
|
||||
]
|
||||
|
||||
testtest[ /**/
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,/**/]
|
||||
|
||||
testtest[foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
]
|
||||
|
||||
testtest[foofoo // fd
|
||||
]
|
||||
|
||||
testtest[ /**/
|
||||
foofoo
|
||||
]
|
||||
|
||||
testtest[foofoo,/**/]
|
||||
|
||||
testtest[foofoo, fososos,/*
|
||||
*/ testtest[testtest[foofoo]],]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]], /**/testsa]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]]/* */ , /**/testsa]
|
||||
|
||||
testtest[foofoo, testtest[testtest[foofoo,]]/*
|
||||
*/ ,testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], /**/testsa]
|
||||
|
||||
testtest[foofoo, seee, testtest[testtest[foofoo,]], /*
|
||||
*/testsa]
|
||||
|
||||
useCallable["B", "C", Callable {
|
||||
println["Hello world"]
|
||||
}, /* */ Callable {
|
||||
println["Hello world"]
|
||||
}]
|
||||
|
||||
useCallable[Callable { println["Hello world"] } // ffd
|
||||
]
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>,
|
||||
y: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: Comparable<Comparable<Number>>, y: String->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: String, y
|
||||
: String->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: Comparable<Comparable<Number>>,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>,
|
||||
y: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String
|
||||
,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String ,
|
||||
y: String,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
y: String,
|
||||
z: String ,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x, y: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String, z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
z: String, v: Comparable<Comparable<Number>>,
|
||||
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {x: String,
|
||||
y: Comparable<Comparable<Number>>,
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Int
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String
|
||||
, /* */ z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String
|
||||
->
|
||||
println("1")
|
||||
}()
|
||||
|
||||
val x = {
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String ,->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: Comparable<Comparable<Number>>, y: String,
|
||||
z: String
|
||||
, ->
|
||||
println("1")
|
||||
}
|
||||
|
||||
val x = {
|
||||
x: String, y: String, z: String
|
||||
->
|
||||
println("1")
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
fun main() {
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: Iterable<Iterable<Number>> // trailing comma
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>,
|
||||
z: Iterable<Iterable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>,
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (
|
||||
y: Comparable<Comparable<Number>>, //
|
||||
z: Iterable<Iterable<Number>> // /**/
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>, z: Iterable<Iterable<Number>>
|
||||
// wd
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>/*
|
||||
*/, z: Iterable<Iterable<Number>>, /* //
|
||||
*/) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (/**/y: Comparable<Comparable<Number>>/**/) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>/**/,) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: (y: Comparable<Comparable<Number>>
|
||||
) -> Int = {
|
||||
10
|
||||
}
|
||||
|
||||
val x: ( /*
|
||||
*/y: Comparable<Comparable<Number>>) -> Int = {
|
||||
10
|
||||
}
|
||||
}
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
fun test() {
|
||||
val (a, b) = 1 to 2
|
||||
|
||||
val (a, b) = 1 to
|
||||
2
|
||||
|
||||
val (a, b) = 1
|
||||
to
|
||||
2
|
||||
|
||||
|
||||
val (a, b,) = 1 to 2
|
||||
|
||||
val (a,) =
|
||||
b
|
||||
|
||||
val (a,
|
||||
) =
|
||||
b
|
||||
|
||||
val (a
|
||||
) =
|
||||
b
|
||||
|
||||
val (a,) = b
|
||||
|
||||
val (
|
||||
a,) = b
|
||||
|
||||
val (a, b
|
||||
) = 1 to 2
|
||||
|
||||
val (a,
|
||||
b) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b
|
||||
) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b,
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f,
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b/**/) = 1 to 2
|
||||
|
||||
val (a, /**/b/**/) /**/=/**/ 1 to
|
||||
2
|
||||
|
||||
val (a,/**/ b) = 1
|
||||
to
|
||||
2
|
||||
|
||||
val (a, b/**/,) = 1 to 2
|
||||
|
||||
val (a/**/, b/**/,/**/) = 1 to 2
|
||||
|
||||
val (a/**/,/**/) =
|
||||
b
|
||||
|
||||
val (a,) = b
|
||||
|
||||
val (a, b/**/
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b// awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a,/**/ b /**/ // awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a, // ad
|
||||
/**/b) = 1 to 2
|
||||
|
||||
val (
|
||||
a, b // fe
|
||||
/**/)/**/ = 1 to 2
|
||||
|
||||
val (
|
||||
a, b, // awd
|
||||
) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f // awd
|
||||
/*
|
||||
*/) = 1 to 2
|
||||
|
||||
val (a, b, c,
|
||||
d, f // awd
|
||||
,
|
||||
) = 1 to 2
|
||||
}
|
||||
@@ -0,0 +1,458 @@
|
||||
class A1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class B1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class C1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class D1 {
|
||||
val x: String
|
||||
val y: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String
|
||||
,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
class A2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class B2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class C2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class D2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class A3 {
|
||||
val x: String
|
||||
|
||||
constructor(x: String,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class B3 {
|
||||
val x: String
|
||||
|
||||
constructor(x: String) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class C3 {
|
||||
val x: String
|
||||
|
||||
constructor(
|
||||
x: String,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class D3 {
|
||||
val x: String
|
||||
|
||||
constructor(
|
||||
x: String
|
||||
,) {
|
||||
this.x = x
|
||||
}
|
||||
}
|
||||
|
||||
class E1 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String, z: String,) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
|
||||
class E2 {
|
||||
val x: String
|
||||
val y: String
|
||||
val z: String
|
||||
|
||||
constructor(
|
||||
x: String,
|
||||
y: String, z: String) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.z = z
|
||||
}
|
||||
}
|
||||
class A1(
|
||||
val x: String,
|
||||
y: String,
|
||||
)
|
||||
|
||||
class B1(
|
||||
val x: String,
|
||||
val y: String
|
||||
)
|
||||
|
||||
class C1(
|
||||
val x: String,
|
||||
val y: String,)
|
||||
|
||||
class D1(
|
||||
val x: String,
|
||||
val y: String
|
||||
,)
|
||||
|
||||
class A2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String,
|
||||
)
|
||||
|
||||
class B2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
)
|
||||
|
||||
class C2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String,)
|
||||
|
||||
class D2(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
,)
|
||||
|
||||
class A3(
|
||||
val x: String,
|
||||
)
|
||||
|
||||
class B3(
|
||||
val x: String
|
||||
)
|
||||
|
||||
class C3(
|
||||
val x: String,)
|
||||
|
||||
class D3(
|
||||
val x: String
|
||||
,)
|
||||
|
||||
class A4(
|
||||
val x: String ,
|
||||
val y: String,
|
||||
val z: String ,
|
||||
)
|
||||
|
||||
class B4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
)
|
||||
|
||||
class C4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String ,)
|
||||
|
||||
class D4(
|
||||
val x: String,
|
||||
val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class E1(
|
||||
val x: String, val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class E2(
|
||||
val x: String, val y: String, val z: String
|
||||
)
|
||||
|
||||
class C(
|
||||
z: String, val v: Int, val x: Int =
|
||||
42, val y: Int =
|
||||
42
|
||||
)
|
||||
|
||||
val foo1: (Int, Int) -> Int = fun(
|
||||
x,
|
||||
y,
|
||||
): Int = 42
|
||||
|
||||
val foo2: (Int, Int) -> Int = fun(
|
||||
x,
|
||||
y
|
||||
): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo3: (Int, Int) -> Int = fun(
|
||||
x, y,
|
||||
): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo4: (Int) -> Int = fun(
|
||||
x,
|
||||
): Int = 42
|
||||
|
||||
val foo5: (Int) -> Int = fun(
|
||||
x
|
||||
): Int = 42
|
||||
|
||||
val foo6: (Int) -> Int = fun(x,): Int = 42
|
||||
|
||||
val foo7: (Int) -> Int = fun(x): Int = 42
|
||||
|
||||
val foo8: (Int, Int, Int) -> Int = fun (x, y: Int, z,): Int {
|
||||
return x + y
|
||||
}
|
||||
|
||||
val foo9: (Int, Int, Int) -> Int = fun (
|
||||
x,
|
||||
y: Int,
|
||||
z,
|
||||
): Int = 42
|
||||
|
||||
val foo10: (Int, Int, Int) -> Int = fun (
|
||||
x,
|
||||
y: Int,
|
||||
z: Int
|
||||
): Int = 43
|
||||
|
||||
val foo10 = fun (
|
||||
x: Int,
|
||||
y: Int,
|
||||
z: Int
|
||||
): Int = 43
|
||||
|
||||
val foo11 = fun (
|
||||
x: Int,
|
||||
y: Int,
|
||||
z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo12 = fun (
|
||||
x: Int, y: Int, z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo13 = fun (x: Int, y: Int, z: Int,
|
||||
): Int = 43
|
||||
|
||||
val foo14 = fun (x: Int, y: Int, z: Int
|
||||
,): Int = 43
|
||||
|
||||
fun a1(
|
||||
x: String,
|
||||
y: String,
|
||||
) = Unit
|
||||
|
||||
fun b1(
|
||||
x: String,
|
||||
y: String
|
||||
) = Unit
|
||||
|
||||
fun c1(
|
||||
x: String,
|
||||
y: String,) = Unit
|
||||
|
||||
fun d1(
|
||||
x: String,
|
||||
y: String
|
||||
,) = Unit
|
||||
|
||||
fun a2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
) = Unit
|
||||
|
||||
fun b2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) = Unit
|
||||
|
||||
fun c2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,) = Unit
|
||||
|
||||
fun d2(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,) = Unit
|
||||
|
||||
fun a3(
|
||||
x: String,
|
||||
) = Unit
|
||||
|
||||
fun b3(
|
||||
x: String
|
||||
) = Unit
|
||||
|
||||
fun c3(
|
||||
x: String,) = Unit
|
||||
|
||||
fun d3(
|
||||
x: String
|
||||
,) = Unit
|
||||
|
||||
fun a4(
|
||||
x: String
|
||||
,
|
||||
y: String,
|
||||
z: String ,
|
||||
) = Unit
|
||||
|
||||
fun b4(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
) = Unit
|
||||
|
||||
fun c4(x: String,
|
||||
y: String,
|
||||
z: String ,) = Unit
|
||||
|
||||
fun d4(
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
, ) = Unit
|
||||
|
||||
fun foo(
|
||||
x: Int =
|
||||
42
|
||||
) {
|
||||
}
|
||||
|
||||
class C(
|
||||
val x: Int =
|
||||
42
|
||||
)
|
||||
|
||||
class G(
|
||||
val x: String, val y: String
|
||||
= "", /* */ val z: String
|
||||
)
|
||||
|
||||
class G(
|
||||
val x: String, val y: String
|
||||
= "" /* */, /* */ val z: String
|
||||
)
|
||||
|
||||
class H(
|
||||
val x: String, /*
|
||||
*/ val y: String,
|
||||
val z: String ,)
|
||||
|
||||
class J(
|
||||
val x: String, val y: String , val z: String /*
|
||||
*/
|
||||
, )
|
||||
|
||||
class K(
|
||||
val x: String, val y: String,
|
||||
val z: String
|
||||
, )
|
||||
|
||||
class L(
|
||||
val x: String, val y: String, val z: String // adwd
|
||||
)
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
fun foo() {
|
||||
testtest<foofoo,
|
||||
testtest<testtest<
|
||||
foofoo,
|
||||
>,
|
||||
>,
|
||||
testsa,
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo,
|
||||
foofoo, bar>()
|
||||
|
||||
testtest<
|
||||
foofoo, foofoo, foofoo, foofoo, bar
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo,
|
||||
bar
|
||||
>()
|
||||
|
||||
testtest<foofoo
|
||||
>()
|
||||
|
||||
testtest<
|
||||
foofoo>()
|
||||
|
||||
testtest<
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo>>>()
|
||||
|
||||
testtest<foofoo, fososos, testtest<testtest<foofoo>>,>()
|
||||
|
||||
testtest<foofoo, fososos, testtest<testtest<foofoo>>
|
||||
,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>, testsa>()
|
||||
|
||||
testtest<foofoo, *, testtest<testtest<foofoo,>>, testsa>()
|
||||
|
||||
testtest<
|
||||
foofoo, foofoo, foofoo, foofoo,
|
||||
bar /*
|
||||
*/, /* */ foo
|
||||
>()
|
||||
|
||||
testtest</*
|
||||
*/foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
foofoo, bar>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar/*
|
||||
*/>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, bar // awdawda
|
||||
>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo, /*
|
||||
|
||||
*/
|
||||
bar
|
||||
>()
|
||||
|
||||
testtest<foofoo // fd
|
||||
>()
|
||||
|
||||
testtest< /**/
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,/**/>()
|
||||
|
||||
testtest<foofoo, foofoo, foofoo, foofoo/*
|
||||
*/ , /* */ bar
|
||||
>()
|
||||
|
||||
testtest<foofoo // fd
|
||||
>()
|
||||
|
||||
testtest< /**/
|
||||
foofoo
|
||||
>()
|
||||
|
||||
testtest<foofoo,/**/>()
|
||||
|
||||
testtest<foofoo,/*
|
||||
*/>()
|
||||
|
||||
testtest<
|
||||
foofoo,/**/>()
|
||||
|
||||
testtest<foofoo, fososos,/*
|
||||
*/ testtest<testtest<foofoo>>,>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>, /**/testsa>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>/* */ , /**/testsa>()
|
||||
|
||||
testtest<foofoo, testtest<testtest<foofoo,>>/*
|
||||
*/ ,testsa>()
|
||||
|
||||
testtest<foofoo, seee, testtest<testtest<foofoo,>>, /**/testsa>()
|
||||
|
||||
testtest<foofoo, seee, testtest<testtest<foofoo,>>, /*
|
||||
*/testsa>()
|
||||
}
|
||||
+261
@@ -0,0 +1,261 @@
|
||||
class A1<
|
||||
x: String,
|
||||
y: String,
|
||||
>
|
||||
|
||||
class F<x: String, y: String>
|
||||
|
||||
class F2<x: String, y
|
||||
: String>
|
||||
|
||||
class B1<
|
||||
x: String,
|
||||
y: String
|
||||
>
|
||||
|
||||
class C1<
|
||||
x: String,
|
||||
y: String,>
|
||||
|
||||
class D1<
|
||||
x: String,
|
||||
y: String
|
||||
,>
|
||||
|
||||
class A2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
>
|
||||
|
||||
class B2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
>
|
||||
|
||||
class C2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,>
|
||||
|
||||
class D2<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,>
|
||||
|
||||
class A3<
|
||||
x: String,
|
||||
>
|
||||
|
||||
class B3<
|
||||
x: String
|
||||
>
|
||||
|
||||
class C3<
|
||||
x: String,>
|
||||
|
||||
class D3<
|
||||
x: String
|
||||
,>
|
||||
|
||||
class A4<
|
||||
x: String ,
|
||||
y: String,
|
||||
z ,
|
||||
>
|
||||
|
||||
class B4<
|
||||
x: String,
|
||||
y,
|
||||
z: String
|
||||
>
|
||||
|
||||
class C4<
|
||||
x: String,
|
||||
y: String,
|
||||
z: String ,>
|
||||
|
||||
class D4<
|
||||
x: String,
|
||||
y,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class E1<
|
||||
x, y: String,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class E2<
|
||||
x: String, y: String, z: String
|
||||
>
|
||||
|
||||
class C<
|
||||
z: String, v
|
||||
|
||||
>
|
||||
|
||||
fun <x: String,
|
||||
y: String,
|
||||
> a1() = Unit
|
||||
|
||||
fun <x: String,
|
||||
y: String
|
||||
> b1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,> c1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String
|
||||
,> d1() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,
|
||||
> a2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
> b2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String,> c2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
,> d2() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
> a3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
> b3() = Unit
|
||||
|
||||
fun <
|
||||
x: String,> c3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
,> d3() = Unit
|
||||
|
||||
fun <
|
||||
x: String
|
||||
,
|
||||
y: String,
|
||||
z: String ,
|
||||
> a4() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
> b4() = Unit
|
||||
|
||||
fun <x: String,
|
||||
y: String,
|
||||
z: String ,> c4() = Unit
|
||||
|
||||
fun <
|
||||
x: String,
|
||||
y: String,
|
||||
z: String
|
||||
, > d4() = Unit
|
||||
|
||||
fun <
|
||||
x
|
||||
> foo() {
|
||||
}
|
||||
|
||||
fun <T> ag() {
|
||||
|
||||
}
|
||||
|
||||
fun <T,> ag() {
|
||||
|
||||
}
|
||||
|
||||
fun <
|
||||
T> ag() {
|
||||
|
||||
}
|
||||
|
||||
class C<
|
||||
x: Int
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
, /* */ z: String
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String
|
||||
>()
|
||||
|
||||
class H<
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String ,>
|
||||
|
||||
class J<
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, >
|
||||
|
||||
class K<
|
||||
x: String, y: String,
|
||||
z: String
|
||||
, >
|
||||
|
||||
class L<
|
||||
x: String, y: String, z: String
|
||||
>
|
||||
|
||||
class C<
|
||||
x: Int // adad
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
, /* */ z: String // adad
|
||||
>
|
||||
|
||||
class G<
|
||||
x: String, y: String
|
||||
/* */, /* */ z: String /**/,
|
||||
>()
|
||||
|
||||
class H<
|
||||
x: String, /*
|
||||
*/ y: String,
|
||||
z: String /*
|
||||
*/ ,>
|
||||
|
||||
class J<
|
||||
x: String, y: String , z: String /*
|
||||
*/
|
||||
, /**/ >
|
||||
|
||||
class K<
|
||||
x: String, y: String,
|
||||
z: String // aw
|
||||
, >
|
||||
|
||||
class L<
|
||||
x: String, y: String, z: String //awd
|
||||
>
|
||||
@@ -0,0 +1,75 @@
|
||||
fun foo(x: Any) = when (x) {
|
||||
Comparable::class, Iterable::class, String::class, // trailing comma
|
||||
-> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
fun foo(x: Any) {
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class, String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class,
|
||||
String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class,
|
||||
String::class /*// trailing comma*/, -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
Comparable::class, Iterable::class, String::class /*// trailing comma*/ -> println(1)
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1 -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1, -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1
|
||||
-> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (x) {
|
||||
1, 2,
|
||||
3 /**/ -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when (val c = x) {
|
||||
1, 2,
|
||||
3 /**/ -> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
|
||||
when {
|
||||
x in coll
|
||||
-> {
|
||||
|
||||
}
|
||||
else -> println(3)
|
||||
}
|
||||
}
|
||||
+740
@@ -0,0 +1,740 @@
|
||||
<problems>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>26</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>30</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>32</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>34</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>46</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>68</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>90</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>116</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>159</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>172</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>177</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>179</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>181</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>184</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>186</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>221</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ArgumentList.kt</file>
|
||||
<line>223</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>4</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>22</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>40</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>70</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>CollectionLiteralInAnnotation.kt</file>
|
||||
<line>84</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="CollectionLiteralInAnnotation.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>1</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>1</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>5</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>22</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>28</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>32</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>36</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>DestructionDeclarationsInLambda.kt</file>
|
||||
<line>61</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="DestructionDeclarationsInLambda.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>26</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>33</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>35</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>47</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>72</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>91</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>95</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>138</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>151</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>156</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>158</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>160</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>163</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>IndicesAccess.kt</file>
|
||||
<line>165</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="IndicesAccess.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaParameterList.kt</file>
|
||||
<line>81</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaParameterList.kt</file>
|
||||
<line>175</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>20</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>33</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>61</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>LambdaValueParameters.kt</file>
|
||||
<line>70</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="LambdaValueParameters.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>12</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>14</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>25</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>61</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>63</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>65</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>68</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>MultiVariableDeclaration.kt</file>
|
||||
<line>97</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="MultiVariableDeclaration.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>118</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>298</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>302</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ParameterList.kt</file>
|
||||
<line>449</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="ParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>34</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>38</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>43</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>45</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>78</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>91</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>102</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>104</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>106</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>109</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeArgumentList.kt</file>
|
||||
<line>111</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeArgumentList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>187</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>218</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>240</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>240</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>247</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>252</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>TypeParameterList.kt</file>
|
||||
<line>257</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="TypeParameterList.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>WhenEntry.kt</file>
|
||||
<line>21</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="WhenEntry.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Comma loses the advantages in this position</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>WhenEntry.kt</file>
|
||||
<line>38</line>
|
||||
<module>testProject</module>
|
||||
<package>light_idea_test_case</package>
|
||||
<entry_point TYPE="file" FQNAME="WhenEntry.kt" />
|
||||
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Trailing comma recommendations</problem_class>
|
||||
<description>Redundant trailing comma</description>
|
||||
</problem>
|
||||
</problems>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.TrailingCommaInspection
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// SET_FALSE: ALLOW_TRAILING_COMMA
|
||||
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.TrailingCommaInspection
|
||||
@@ -0,0 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Add trailing comma
|
||||
|
||||
fun a(i: Int,
|
||||
b: Boolean<caret>) = Unit
|
||||
@@ -0,0 +1,7 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Add trailing comma
|
||||
|
||||
fun a(
|
||||
i: Int,
|
||||
b: Boolean,
|
||||
) = Unit
|
||||
@@ -0,0 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Fix comma position
|
||||
|
||||
fun a(i: Int /*
|
||||
*/<caret>, b: Boolean) = Unit
|
||||
@@ -0,0 +1,8 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Fix comma position
|
||||
|
||||
fun a(
|
||||
i: Int, /*
|
||||
*/
|
||||
b: Boolean,
|
||||
) = Unit
|
||||
@@ -0,0 +1,4 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Remove trailing comma
|
||||
|
||||
fun a(i: Int, b: Boolean,<caret>) = Unit
|
||||
@@ -0,0 +1,4 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+TrailingCommas
|
||||
// FIX: Remove trailing comma
|
||||
|
||||
fun a(i: Int, b: Boolean<caret>) = Unit
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
package org.jetbrains.kotlin.idea.codeInsight
|
||||
|
||||
import com.intellij.application.options.CodeStyle
|
||||
import com.intellij.codeInspection.ex.EntryPointsManagerBase
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.command.CommandProcessor
|
||||
@@ -14,6 +15,7 @@ import com.intellij.psi.PsiFile
|
||||
import com.intellij.testFramework.TestLoggerFactory
|
||||
import org.jdom.Document
|
||||
import org.jdom.input.SAXBuilder
|
||||
import org.jetbrains.kotlin.formatter.FormatSettingsUtil
|
||||
import org.jetbrains.kotlin.idea.core.script.isScriptChangesNotifierDisabled
|
||||
import org.jetbrains.kotlin.idea.inspections.runInspection
|
||||
import org.jetbrains.kotlin.idea.test.KotlinLightCodeInsightFixtureTestCase
|
||||
@@ -114,7 +116,9 @@ abstract class AbstractInspectionTest : KotlinLightCodeInsightFixtureTestCase()
|
||||
}
|
||||
}.toList()
|
||||
|
||||
val codeStyleSettings = CodeStyle.getSettings(project)
|
||||
try {
|
||||
FormatSettingsUtil.createConfigurator(options, codeStyleSettings).configureSettings()
|
||||
fixtureClasses.forEach { TestFixtureExtension.loadFixture(it, myFixture.module) }
|
||||
|
||||
configExtra(psiFiles, options)
|
||||
@@ -141,6 +145,7 @@ abstract class AbstractInspectionTest : KotlinLightCodeInsightFixtureTestCase()
|
||||
}
|
||||
|
||||
} finally {
|
||||
codeStyleSettings.clearCodeStyleSettings()
|
||||
if (configured) {
|
||||
rollbackCompilerOptions(project, module)
|
||||
}
|
||||
|
||||
+20
@@ -373,6 +373,26 @@ public class InspectionTestGenerated extends AbstractInspectionTest {
|
||||
runTest("idea/testData/inspections/suspiciousEqualsCombination/inspectionData/inspections.test");
|
||||
}
|
||||
|
||||
@TestMetadata("trailingCommaOffWithCodeStyle/inspectionData/inspections.test")
|
||||
public void testTrailingCommaOffWithCodeStyle_inspectionData_Inspections_test() throws Exception {
|
||||
runTest("idea/testData/inspections/trailingCommaOffWithCodeStyle/inspectionData/inspections.test");
|
||||
}
|
||||
|
||||
@TestMetadata("trailingCommaOffWithoutCodeStyle/inspectionData/inspections.test")
|
||||
public void testTrailingCommaOffWithoutCodeStyle_inspectionData_Inspections_test() throws Exception {
|
||||
runTest("idea/testData/inspections/trailingCommaOffWithoutCodeStyle/inspectionData/inspections.test");
|
||||
}
|
||||
|
||||
@TestMetadata("trailingCommaOnWithCodeStyle/inspectionData/inspections.test")
|
||||
public void testTrailingCommaOnWithCodeStyle_inspectionData_Inspections_test() throws Exception {
|
||||
runTest("idea/testData/inspections/trailingCommaOnWithCodeStyle/inspectionData/inspections.test");
|
||||
}
|
||||
|
||||
@TestMetadata("trailingCommaOnWithoutCodeStyle/inspectionData/inspections.test")
|
||||
public void testTrailingCommaOnWithoutCodeStyle_inspectionData_Inspections_test() throws Exception {
|
||||
runTest("idea/testData/inspections/trailingCommaOnWithoutCodeStyle/inspectionData/inspections.test");
|
||||
}
|
||||
|
||||
@TestMetadata("twoSetOfTypeparameters/inspectionData/inspections.test")
|
||||
public void testTwoSetOfTypeparameters_inspectionData_Inspections_test() throws Exception {
|
||||
runTest("idea/testData/inspections/twoSetOfTypeparameters/inspectionData/inspections.test");
|
||||
|
||||
+28
@@ -12258,6 +12258,34 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("idea/testData/inspectionsLocal/trailingComma")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TrailingComma extends AbstractLocalInspectionTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("addComma.kt")
|
||||
public void testAddComma() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/trailingComma/addComma.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTrailingComma() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/testData/inspectionsLocal/trailingComma"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("changeCommaPosition.kt")
|
||||
public void testChangeCommaPosition() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/trailingComma/changeCommaPosition.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("removeComma.kt")
|
||||
public void testRemoveComma() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/trailingComma/removeComma.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("idea/testData/inspectionsLocal/unlabeledReturnInsideLambda")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user