[FIR] Fold flexible types after substitution if possible

This commit is contained in:
Mikhail Glukhikh
2020-10-15 11:48:52 +03:00
parent acb03cb28c
commit abc2866902
3 changed files with 8 additions and 3 deletions
@@ -53,7 +53,7 @@ public class JavaClassCase3{
// TESTCASE NUMBER: 3
fun case3() {
val x = JavaClassCase3.id(null) // Nothing!
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Nothing?..kotlin.Nothing??")!>x<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Nothing?")!>x<!>
val a = if (x) {
"NOK"
} else "NOK"