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