FIR checker: report VAL_REASSIGNMENT on value parameter

This commit is contained in:
Jinseong Jeon
2021-04-26 00:38:34 -07:00
committed by TeamCityServer
parent 2486555208
commit 03f85bea8f
7 changed files with 19 additions and 13 deletions
@@ -59,7 +59,7 @@ fun canBe(i0: Int, j: Int) {
var i = i0
(label@ i) = 34
(label@ j) = 34 //repeat for j
(label@ <!VAL_REASSIGNMENT!>j<!>) = 34 //repeat for j
val a = A()
(l@ a.a) = 3894
@@ -69,7 +69,7 @@ fun canBe(i0: Int, j: Int) {
}
fun canBe2(j: Int) {
(label@ j) = 34
(label@ <!VAL_REASSIGNMENT!>j<!>) = 34
}
class A() {