Files
kotlin-fork/idea/testData/refactoring/introduceVariable/arrayAssignment.kt
T
2016-10-13 19:00:58 +03:00

8 lines
173 B
Kotlin
Vendored

// WITH_RUNTIME
class Foo(var bar: IntArray)
fun test() {
val foo = Foo(IntArray(1) { 1 })
println(<selection>foo.bar</selection>)
foo.bar[0] = foo.bar[0] + 1
}