Files
kotlin-fork/compiler/testData/diagnostics/tests/cast/bare/NullableAs.kt
T
2015-05-12 19:43:17 +02:00

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)
}