[FIR] Support of REDECLARATION for local val/var, ^KT-54405 Fixed
This commit is contained in:
committed by
Space Team
parent
879deb90fc
commit
e49bb1fe37
Vendored
+1
-1
@@ -32,7 +32,7 @@ FILE: missingBooleanBranch.kt
|
||||
}
|
||||
}
|
||||
|
||||
lval x: R|kotlin/Int| = when (R|<local>/cond|) {
|
||||
lval y: R|kotlin/Int| = when (R|<local>/cond|) {
|
||||
==($subj$, Boolean(true)) -> {
|
||||
Int(1)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -19,7 +19,7 @@ fun test_2(cond: Boolean?) {
|
||||
false -> 2
|
||||
}
|
||||
|
||||
val x = when (cond) {
|
||||
val y = when (cond) {
|
||||
true -> 1
|
||||
false -> 2
|
||||
null -> 3
|
||||
|
||||
Reference in New Issue
Block a user