[FIR] Check is for impossibility
^KT-58203 Fixed ^KT-62646
This commit is contained in:
committed by
Space Team
parent
92d8da621e
commit
88ff93df7f
Vendored
+2
-2
@@ -14,8 +14,8 @@
|
||||
// TESTCASE NUMBER: 1
|
||||
fun case_1(value_1: SealedClass) = when (value_1) {
|
||||
!is SealedChild1 -> {}
|
||||
!is SealedChild2 -> {}
|
||||
!is SealedChild3 -> {}
|
||||
<!USELESS_IS_CHECK!>!is SealedChild2<!> -> {}
|
||||
<!USELESS_IS_CHECK!>!is SealedChild3<!> -> {}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Vendored
+1
-1
@@ -18,7 +18,7 @@ fun case_1(value_1: SealedClass): String = when (value_1) {
|
||||
|
||||
// TESTCASE NUMBER: 2
|
||||
fun case_2(value_1: SealedClass) = when (value_1) {
|
||||
!is SealedChild1, !is SealedChild2, !is SealedChild3 -> {}
|
||||
!is SealedChild1, <!USELESS_IS_CHECK!>!is SealedChild2<!>, <!USELESS_IS_CHECK!>!is SealedChild3<!> -> {}
|
||||
}
|
||||
|
||||
// TESTCASE NUMBER: 3
|
||||
|
||||
Reference in New Issue
Block a user