[FIR] DFA: add missing unwrap for FirDesugaredAssignmentValueReferenceExpression
^KT-60319 Fixed ^KT-61407 Fixed
This commit is contained in:
committed by
Space Team
parent
c01d27a61e
commit
3debf36d60
@@ -0,0 +1,17 @@
|
||||
// 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 -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user