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

17 lines
199 B
Kotlin
Vendored

// FIR_IDENTICAL
open class A<E> {
}
class B : A<String>() {
fun foo() {}
}
interface KI {
val a: A<*>
}
fun KI.bar() {
if (a is B) {
<!SMARTCAST_IMPOSSIBLE!>a<!>.foo()
}
}