Files
kotlin-fork/idea/testData/intentions/operatorToFunction/arrayAssignmentMultipleIndex.kt
T
Jeremy Kaplan b3842285e8 Implemented Operator To Function intention action.
Converts +a, --a, a * b, a..b, a %= b, a in b, etc. to their function call counterparts.
2014-05-12 21:04:51 +04:00

6 lines
114 B
Kotlin
Vendored

// ERROR: Unresolved reference: array
fun foo(b: Int) {
var a = array(1, 2, 3, 4, 5)
a<caret>[2, 3] = b
}