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