Add "Suspicious collection reassignment" inspection #KT-20626 Fixed
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "Replace with assignment" "false"
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ACTION: Replace with ordinary assignment
|
||||
// WITH_RUNTIME
|
||||
fun test(otherList: List<Int>) {
|
||||
var list: List<Int>
|
||||
list = emptyList<Int>()
|
||||
list +=<caret> otherList
|
||||
}
|
||||
Reference in New Issue
Block a user