10 lines
204 B
Kotlin
10 lines
204 B
Kotlin
// !CHECK_TYPE
|
|
|
|
trait Tr
|
|
trait G<T>
|
|
|
|
fun test(tr: Tr) {
|
|
val v = tr as <!NO_TYPE_ARGUMENTS_ON_RHS!>G?<!>
|
|
// If v is not nullable, there will be a warning on this line:
|
|
checkSubtype<G<*>>(v!!)
|
|
} |