FIR checker: warn useless as and is
This commit is contained in:
committed by
TeamCityServer
parent
19d939c36e
commit
e2dc21da90
@@ -2,7 +2,7 @@
|
||||
|
||||
fun foo(o: Any) {
|
||||
if (o is String) {
|
||||
val s = o as String
|
||||
val s = o <!USELESS_CAST!>as String<!>
|
||||
s.length
|
||||
}
|
||||
}
|
||||
@@ -13,4 +13,4 @@ fun foo1(o: Any) {
|
||||
val s = o
|
||||
s.length
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user