29f95c7df2
Type parameters do not necessarily match one-to-one, or preserve order.
10 lines
247 B
Kotlin
Vendored
10 lines
247 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
interface Tr
|
|
interface G<T>
|
|
|
|
fun test(tr: Tr) {
|
|
val v = tr as <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>G?<!>
|
|
// If v is not nullable, there will be a warning on this line:
|
|
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><G<*>>(v!!)
|
|
} |