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