FIR checker: warn useless as and is
This commit is contained in:
committed by
TeamCityServer
parent
19d939c36e
commit
e2dc21da90
@@ -12,7 +12,7 @@ object DD : D()
|
||||
fun foo1(a: A) {
|
||||
if (a is B) {
|
||||
if (a is D) {
|
||||
if (a is C) {
|
||||
if (<!USELESS_IS_CHECK!>a is C<!>) {
|
||||
val t =
|
||||
when (a) {
|
||||
is DD -> "DD"
|
||||
@@ -25,7 +25,7 @@ fun foo1(a: A) {
|
||||
fun foo2(a: A) {
|
||||
if (a is B) {
|
||||
if (a is D) {
|
||||
if (a is C) {
|
||||
if (<!USELESS_IS_CHECK!>a is C<!>) {
|
||||
val t =
|
||||
when (a) {
|
||||
is DD -> "DD"
|
||||
@@ -33,4 +33,4 @@ fun foo2(a: A) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user