[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
@@ -8,7 +8,7 @@ fun test1() {
if (newC != null) {
c = newC
}
<!INAPPLICABLE_CANDIDATE!>foo<!>(c)
foo(c)
}
fun test2() {
@@ -19,7 +19,7 @@ fun test2() {
if (newC is String) {
c = newC
}
<!INAPPLICABLE_CANDIDATE!>foo<!>(c)
foo(c)
}
fun test3() {
@@ -30,6 +30,6 @@ fun test3() {
if (newC == null) return
c = newC
<!INAPPLICABLE_CANDIDATE!>foo<!>(c)
foo(c)
}