Add "Suspicious collection reassignment" inspection #KT-20626 Fixed
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "Join with initializer" "true"
|
||||
// TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection
|
||||
// WITH_RUNTIME
|
||||
fun test(otherList: List<Int>) {
|
||||
var list = createList() + otherList<caret>
|
||||
// comment
|
||||
}
|
||||
|
||||
fun createList(): List<Int> = listOf(1, 2, 3)
|
||||
Reference in New Issue
Block a user