Add "Suspicious collection reassignment" inspection #KT-20626 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// FIX: Change type to mutable
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
var list = listOf(1)
|
||||
list +=<caret> 2
|
||||
}
|
||||
Reference in New Issue
Block a user