FIR checker: warn useless as and is
This commit is contained in:
committed by
TeamCityServer
parent
19d939c36e
commit
e2dc21da90
Vendored
+3
-3
@@ -14,7 +14,7 @@ class Case1() {
|
||||
|
||||
this.yield("") //UNRESOLVED_REFERENCE
|
||||
|
||||
this as SequenceScope<String>
|
||||
this <!USELESS_CAST!>as SequenceScope<String><!>
|
||||
|
||||
yield("") // resolved to SequenceScope.yield
|
||||
|
||||
@@ -31,10 +31,10 @@ fun case2() {
|
||||
|
||||
this.yield("") //UNRESOLVED_REFERENCE
|
||||
|
||||
this as SequenceScope<String>
|
||||
this <!USELESS_CAST!>as SequenceScope<String><!>
|
||||
|
||||
yield("") // UNRESOLVED_REFERENCE
|
||||
|
||||
this.yield("") // UNRESOLVED_REFERENCE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user