Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/inference/kt39010.kt
T
2021-06-10 16:01:13 +03:00

13 lines
189 B
Kotlin
Vendored

// FIR_IDENTICAL
class A<E> {
fun foo(): E = TODO()
}
class B(var a: A<*>?) {
fun bar() {
if (a != null) {
<!SMARTCAST_IMPOSSIBLE!>a<!>.foo()
}
}
}