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

10 lines
181 B
Kotlin
Vendored

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