FIR checker: warn useless as and is

This commit is contained in:
Jinseong Jeon
2021-04-28 22:32:51 -07:00
committed by TeamCityServer
parent 19d939c36e
commit e2dc21da90
141 changed files with 417 additions and 543 deletions
@@ -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
}
}
}