mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
8 lines
173 B
Kotlin
Vendored
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
|
|
} |