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
@@ -54,7 +54,7 @@ fun t2() {
class A() {}
fun t4(a: A) {
a = A()
<!VAL_REASSIGNMENT!>a<!> = A()
}
// ------------------------------------------------
@@ -188,7 +188,7 @@ class AnonymousInitializers(var a: String, val b: String) {
}
fun reassignFunParams(a: Int) {
a = 1
<!VAL_REASSIGNMENT!>a<!> = 1
}
open class Open(a: Int, w: Int) {}