blob: cc00454a971e6fccd22394ac39945ec0fe1a7925 [file]
// RUN_PIPELINE_TILL: FRONTEND
// WITH_STDLIB
package usage
class MyClass1
open class ABC {
open val nestedBlocks = ArrayList<MyClass1>()
fun makeInjectionBlocks() {
val l: List<Any> = listOf(1)
for (b in l) {
when (b) {
is Int -> <!ASSIGNMENT_TYPE_MISMATCH!><!VAL_REASSIGNMENT!>nestedBlocks<!> += b<!>
else -> {}
}
}
}
}
/* GENERATED_FIR_TAGS: additiveExpression, assignment, classDeclaration, forLoop, functionDeclaration, integerLiteral,
isExpression, localProperty, propertyDeclaration, smartcast, whenExpression, whenWithSubject */