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

9 lines
136 B
Kotlin
Vendored

// !CHECK_TYPE
interface Tr<T>
interface G<T> : Tr<T>
fun test(tr: Tr<String>?) {
val v = tr as G
checkSubtype<G<String>>(v)
}