FIR checker: warn useless as and is
This commit is contained in:
committed by
TeamCityServer
parent
19d939c36e
commit
e2dc21da90
+1
-1
@@ -1,7 +1,7 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun foo(x: Number) {
|
||||
if ((x as Int) is Int) {
|
||||
if (<!USELESS_IS_CHECK!>(x as Int) is Int<!>) {
|
||||
checkSubtype<Int>(x)
|
||||
}
|
||||
checkSubtype<Int>(x)
|
||||
|
||||
Reference in New Issue
Block a user