[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
@@ -11,7 +11,7 @@ fun foo() {
while (y != null) {
bar(y)
}
bar(y)
<!INAPPLICABLE_CANDIDATE!>bar<!>(y)
val z: Int? = null
while (z == null) {
@@ -22,5 +22,5 @@ fun whileWithNoCondition(x: Int?) {
while (<!SYNTAX!><!>) {
x!!
}
checkSubtype<Int>(x)
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><Int>(x)
}