29f95c7df2
Type parameters do not necessarily match one-to-one, or preserve order.
9 lines
181 B
Kotlin
Vendored
9 lines
181 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
interface Tr
|
|
interface G<T>
|
|
|
|
fun test(tr: Tr?) {
|
|
val v = tr as <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>G?<!>
|
|
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><G<*>>(v!!)
|
|
} |