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

10 lines
153 B
Kotlin
Vendored

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