[FIR] Update/add extended checker tests

This commit is contained in:
vldf
2020-08-27 10:46:01 +03:00
committed by Mikhail Glukhikh
parent acbb67f851
commit bf363e8f1a
43 changed files with 351 additions and 72 deletions
@@ -0,0 +1,19 @@
fun foo() {
<!CAN_BE_VAL!>var<!> a = 1
var b = <!VARIABLE_INITIALIZER_IS_REDUNDANT!>2<!>
var c = 3
for (i in 0..5) {
if (a == 2) {
<!ASSIGNED_VALUE_IS_NEVER_READ!>b<!> = c
c = a
} else {
b = a
c = b
}
}
if (c == a) {
foo()
}
}