Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/inference/kt29767.kt
T
2021-05-25 13:28:27 +03:00

11 lines
217 B
Kotlin
Vendored

// ISSUE: KT-29767
fun test(a: MutableList<out Int?>?) {
if (a != null) {
val b = a[0] // no SMARTCAST diagnostic
if (b != null) {
<!DEBUG_INFO_SMARTCAST!>b<!>.inc()
}
}
}