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

8 lines
168 B
Kotlin

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