[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
Vendored
+1
-1
@@ -9,7 +9,7 @@ class C() {
|
||||
|
||||
fun test(a : Any?) {
|
||||
if (a is B) {
|
||||
if (a is C) {
|
||||
if (<!USELESS_IS_CHECK!>a is C<!>) {
|
||||
<!DEBUG_INFO_SMARTCAST!>a<!>.bar();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user