[FIR] Don't assume types with not found symbol as error types

This commit is contained in:
Dmitriy Novozhilov
2020-09-10 15:47:02 +03:00
parent 7f692be11e
commit 1dc3c93efa
59 changed files with 330 additions and 323 deletions
@@ -14,7 +14,7 @@ fun Any?.isNull(): Boolean {
fun smartcastOnReceiver(x: Int?) {
if (x.isNull()) {
x.<!AMBIGUITY!>inc<!>()
x.<!INAPPLICABLE_CANDIDATE!>inc<!>()
}
else {
x.dec()
@@ -26,10 +26,10 @@ class UnstableReceiver {
fun smartcastOnUnstableReceiver() {
if (x.isNull()) {
x.<!AMBIGUITY!>inc<!>()
x.<!INAPPLICABLE_CANDIDATE!>inc<!>()
}
else {
x.<!AMBIGUITY!>dec<!>()
x.<!INAPPLICABLE_CANDIDATE!>dec<!>()
}
}
}