Do not remove trivial substitutions

to avoid substituting a new type parameter by default instead of leaving the same
 #KT-4887 Fixed
This commit is contained in:
Svetlana Isakova
2014-04-28 10:03:53 +04:00
parent 808cf75060
commit 775606f80a
4 changed files with 15 additions and 28 deletions
@@ -0,0 +1,8 @@
package h
public class MyClass<S, T>(param: MyClass<S, T>) {
fun test() {
val result: MyClass<Any, Any>? = null
MyClass<S, Any>(result <!CAST_NEVER_SUCCEEDS!>as<!> MyClass<S, Any>)
}
}