[FIR] Fix incorrect smartcasts from || expressions

#KT-36057 Fixed
This commit is contained in:
Dmitriy Novozhilov
2020-02-18 12:11:03 +03:00
parent 89e377763a
commit 41d2f41141
6 changed files with 77 additions and 3 deletions
@@ -196,7 +196,7 @@ fun mergeSmartCasts(a: Any?) {
a.<!INAPPLICABLE_CANDIDATE!>compareTo<!>("")
}
when (a) {
is String, is Any -> a.compareTo("")
is String, is Any -> a.<!UNRESOLVED_REFERENCE!>compareTo<!>("")
}
if (a is String && a is Any) {
val i: Int = a.compareTo("")