Don't report useless cast in lambda if it has influence on return type
#KT-15161 Fixed #KT-12690 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Array<E>(e: E) {
|
||||
val k = Array(1) {
|
||||
1 <!USELESS_CAST!>as Any<!>
|
||||
e as Any?
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user