blob: a2e720a3d43b58051b3028786144fef0fbfd2eaf [file]
// RUN_PIPELINE_TILL: BACKEND
// FIR_IDENTICAL
// DIAGNOSTICS: -DEBUG_INFO_SMARTCAST
fun getArray(): Array<Int> = throw Exception()
fun getList(): MutableList<Int> = throw Exception()
fun getNullableList(): MutableList<Int>? = throw Exception()
fun fn() {
getArray()[1] = 2
getList()[1] = 2
getArray()[1]++
getList()[1]++
getArray()[1] += 2
getList()[1] += 2
val nullable = getNullableList()
if (nullable != null) {
nullable[1] += 1
}
}
/* GENERATED_FIR_TAGS: additiveExpression, assignment, equalityExpression, functionDeclaration, ifExpression,
incrementDecrementExpression, integerLiteral, localProperty, nullableType, propertyDeclaration, smartcast */