Files
kotlin-fork/compiler/testData/diagnostics/tests/cast/bare/NullableAsNullableNotEnough.kt
T

7 lines
108 B
Kotlin

trait Tr
trait G<T>
fun test(tr: Tr?) {
val v = tr as <!NO_TYPE_ARGUMENTS_ON_RHS!>G?<!>
v!!: G<*>
}