Files
kotlin-fork/idea/testData/inspectionsLocal/replaceWithOperatorAssignment/list.kt
T
2018-12-12 15:56:11 +03:00

9 lines
248 B
Kotlin
Vendored

// WITH_RUNTIME
// HIGHLIGHT: INFORMATION
fun foo() {
var list = listOf(1, 2, 3)
// Should not be highlighted because it's the way we use to say explicitly
// "yes, we want to re-assign this immutable list"
list <caret>= list + 4
}