Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/inference/kt39010_2.kt
T
Dmitriy Novozhilov 796f8e6bce Revert "FIR checkers: report SMARTCAST_IMPOSSIBLE"
This reverts commit 84334b08
2021-06-03 09:48:50 +03:00

16 lines
182 B
Kotlin
Vendored

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()
}
}