don't report USELESS_CAST in case of casting to superype using 'as'
This commit is contained in:
@@ -15,6 +15,6 @@ fun bar() {
|
||||
val x = X
|
||||
x.foo()
|
||||
X.foo()
|
||||
(X <!USELESS_CAST!>as C<!>).foo()
|
||||
(X as C).foo()
|
||||
((if (1<2) X else Y) <!USELESS_CAST!>as C<!>).foo()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user