FIR checker: warn useless as and is
This commit is contained in:
committed by
TeamCityServer
parent
19d939c36e
commit
e2dc21da90
@@ -1,6 +1,6 @@
|
||||
fun foo() = if (true) 1 else 0
|
||||
|
||||
fun bar(arg: Any?) = when (arg) {
|
||||
is Int -> arg as Int
|
||||
is Int -> arg <!USELESS_CAST!>as Int<!>
|
||||
else -> 42
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user