[FIR] Implement new bound smartcast algorithm

#KT-36055 Fixed
This commit is contained in:
Dmitriy Novozhilov
2020-02-10 17:14:58 +03:00
parent 40f907ec2f
commit 6735cc8937
103 changed files with 2197 additions and 309 deletions
@@ -2,8 +2,8 @@
fun foo(): String {
var s: String?
s = null
s?.<!UNRESOLVED_REFERENCE!>length<!>
s.<!UNRESOLVED_REFERENCE!>length<!>
s?.length
s.<!INAPPLICABLE_CANDIDATE!>length<!>
if (s == null) return s!!
var t: String? = "y"
if (t == null) t = "x"