[FE 1.0] Report USELESS_IS_CHECK if is expression is always false
^KT-47684 Fixed
This commit is contained in:
committed by
teamcityserver
parent
785e2f862c
commit
7b5a5f5682
+1
-1
@@ -77,7 +77,7 @@ fun case_5(value_1: Boolean) {
|
||||
// TESTCASE NUMBER: 6
|
||||
fun case_6(value_1: Any) {
|
||||
when {
|
||||
value_1 is Nothing -> {}
|
||||
<!USELESS_IS_CHECK!>value_1 is Nothing<!> -> {}
|
||||
value_1 is Int -> {}
|
||||
value_1 is Boolean -> {}
|
||||
value_1 is String -> {}
|
||||
|
||||
Reference in New Issue
Block a user