[FIR] Check is for impossibility

^KT-58203 Fixed
^KT-62646
This commit is contained in:
Nikolay Lunyak
2024-02-29 15:39:33 +02:00
committed by Space Team
parent 92d8da621e
commit 88ff93df7f
42 changed files with 110 additions and 83 deletions
@@ -11,7 +11,7 @@ fun foo(a: A) {
if (a is B) {
if (a is C) {
val t = when (a) {
is CC -> "CC"
<!USELESS_IS_CHECK!>is CC<!> -> "CC"
}
}
}
@@ -21,7 +21,7 @@ fun foo2(a: A) {
if (a is C) {
if (a is B) {
val t = when (a) {
is CC -> "CC"
<!USELESS_IS_CHECK!>is CC<!> -> "CC"
}
}
}