[FIR] Unbound aliased variables in DFA more carefully

This commit is contained in:
Dmitriy Novozhilov
2020-01-21 17:42:55 +03:00
parent 2a23e14e2b
commit 384a094193
7 changed files with 15 additions and 9 deletions
@@ -41,7 +41,7 @@ fun f(a: SomeClass?) {
if (aa as? SomeSubClass != null) {
aa = null
// 'aa' cannot be cast to SomeSubClass
aa.<!INAPPLICABLE_CANDIDATE!>hashCode<!>()
aa.<!UNRESOLVED_REFERENCE!>hashCode<!>()
aa.<!UNRESOLVED_REFERENCE!>foo<!>
(aa as? SomeSubClass).<!INAPPLICABLE_CANDIDATE!>foo<!>
(aa as SomeSubClass).foo