blob: c59ce00cea55c85493a07c63a6c2ca1abdf94cc7 [file]
// IGNORE_DATA_FLOW_IN_ASSERT
// SKIP_TXT
// WITH_STDLIB
interface A {}
class B: A {
fun bool() = true
}
fun test1(a: A) {
assert((a as B).bool())
a.bool()
}
fun test2() {
val a: A? = null;
assert((a as B).bool())
a<!UNNECESSARY_SAFE_CALL!>?.<!>bool()
}