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:
Mikhail Zarechenskiy
2017-04-05 04:37:04 +03:00
parent 30d6af7aae
commit 12db3a263e
6 changed files with 99 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
class Array<E>(e: E) {
val k = Array(1) {
1 <!USELESS_CAST!>as Any<!>
e as Any?
}
}