[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
@@ -108,7 +108,7 @@ fun case_8(value_1: Any?) {
|
||||
|
||||
// TESTCASE NUMBER: 9
|
||||
fun case_9(value_1: Any?) {
|
||||
if (funWithReturnsFalse(value_1 is String) || funWithReturnsFalse(value_1 is Int)) {
|
||||
if (funWithReturnsFalse(value_1 is String) || funWithReturnsFalse(<!USELESS_IS_CHECK!>value_1 is Int<!>)) {
|
||||
|
||||
} else {
|
||||
println(<!DEBUG_INFO_SMARTCAST!>value_1<!>.length)
|
||||
|
||||
Reference in New Issue
Block a user