[FIR] Don't miss annotations while generating augmented assignments

^KT-62473 Fixed
This commit is contained in:
Nikolay Lunyak
2023-10-10 15:52:25 +03:00
committed by Space Team
parent 54e9cafc73
commit afc22728fa
3 changed files with 6 additions and 11 deletions
@@ -1,10 +0,0 @@
// ISSUE: KT-62473
// WITH_STDLIB
class A(val list: List<*>)
fun test(a: A) {
val result = mutableListOf<Int>()
@Suppress("UNCHECKED_CAST")
result += (a.list <!UNCHECKED_CAST!>as List<Int><!>).filter { it > 0 }
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// ISSUE: KT-62473
// WITH_STDLIB