[FIR] Support smartcast after reference equality check

#KT-39000 Fixed
This commit is contained in:
Ivan Kylchik
2020-07-07 16:39:31 +03:00
parent 63f7e95c89
commit 85e822e283
8 changed files with 79 additions and 10 deletions
@@ -15,11 +15,11 @@ fun check(x1: Derived1, x: Base) {
}
if (x1 === x) {
// OK
x.<!UNRESOLVED_REFERENCE!>foo<!>()
x.foo()
}
if (x1 !== x) {} else {
// OK
x.<!UNRESOLVED_REFERENCE!>foo<!>()
x.foo()
}
}