775606f80a
to avoid substituting a new type parameter by default instead of leaving the same #KT-4887 Fixed
8 lines
209 B
Kotlin
8 lines
209 B
Kotlin
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>)
|
|
}
|
|
} |