Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
4f8dad3e4ba00e23b4182ef4c50194b20bd43c8f
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
AssignToArrayElement.kt
blob: 7600d50611e59ba551bc36ec9a54e4ba524f236a [
file
]
// FIR_IDENTICAL
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
}