[FIR] Add checker for uninitialized properties

This commit is contained in:
Dmitriy Novozhilov
2020-06-17 11:51:15 +03:00
parent 25621d699b
commit 26458875d5
96 changed files with 1476 additions and 1358 deletions
@@ -15,7 +15,7 @@ fun f1(flag: Boolean) {
// KT-13612: reassignment
n = 3
}
n.hashCode()
<!UNINITIALIZED_VARIABLE!>n<!>.hashCode()
}
fun f2(flag: Boolean) {
@@ -32,7 +32,7 @@ fun f2(flag: Boolean) {
// KT-13612: reassignment
n = 3
}
n.hashCode()
<!UNINITIALIZED_VARIABLE!>n<!>.hashCode()
}
}
@@ -50,6 +50,6 @@ fun f3(flag: Boolean) {
// KT-13612: reassignment
n = 3
}
n.hashCode()
<!UNINITIALIZED_VARIABLE!>n<!>.hashCode()
}
}