[FIR] Check is for impossibility
^KT-58203 Fixed ^KT-62646
This commit is contained in:
committed by
Space Team
parent
92d8da621e
commit
88ff93df7f
@@ -30,7 +30,7 @@ fun useEn(x: En) = x
|
||||
fun useEn2(x: En2) = x
|
||||
|
||||
fun bar(x: Any) {
|
||||
if (x is En && x is En2) {
|
||||
if (x is En && <!USELESS_IS_CHECK!>x is En2<!>) {
|
||||
when (x) {
|
||||
En.A -> useEn(x)
|
||||
En2.D -> useEn2(x)
|
||||
|
||||
Reference in New Issue
Block a user