mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
10 lines
238 B
Kotlin
Vendored
10 lines
238 B
Kotlin
Vendored
fun getArray(): Array<Int> = throw Exception()
|
|
fun getList(): MutableList<Int> = throw Exception()
|
|
fun fn() {
|
|
getArray()[1] = 2
|
|
getList()[1] = 2
|
|
getArray()[1]++
|
|
getList()[1]++
|
|
getArray()[1] += 2
|
|
getList()[1] += 2
|
|
} |