Add "Suspicious collection reassignment" inspection #KT-20626 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
// ERROR: Type mismatch: inferred type is List<Any> but List<String> was expected
|
||||
fun test() {
|
||||
var list = listOf("")
|
||||
list <caret>+= 1
|
||||
}
|
||||
Reference in New Issue
Block a user