FIR checker: report val reassignment
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
b128577508
commit
f1fa290d49
+1
-1
@@ -26,7 +26,7 @@ fun case1() {
|
||||
fun case2() {
|
||||
val x: Boolean = false
|
||||
try {
|
||||
x = (throw Exception()) || true //VAL_REASSIGNMENT should be
|
||||
<!VAL_REASSIGNMENT!>x<!> = (throw Exception()) || true //VAL_REASSIGNMENT should be
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user