[FIR] Render original type before smartcasted type in DEBUG_INFO_EXPRESSION_TYPE

This is made for keep consistency with same renderer in FE 1.0
This commit is contained in:
Dmitriy Novozhilov
2021-02-15 13:34:15 +03:00
parent d4c26cca52
commit 2b39282682
102 changed files with 5883 additions and 5883 deletions
@@ -11,7 +11,7 @@ fun case_1() {
run {
var unit: Unit? = Unit
while (unit != null) {
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Unit & kotlin.Unit?")!>unit<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Unit? & kotlin.Unit")!>unit<!>
<!UNRESOLVED_REFERENCE!>consume<!>(unit)
unit = null
}
@@ -20,7 +20,7 @@ fun case_1() {
run {
var unit: Unit? = Unit
while (unit != null) {
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Unit & kotlin.Unit?")!>unit<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Unit? & kotlin.Unit")!>unit<!>
<!UNRESOLVED_REFERENCE!>consume<!>(unit)
unit = null
}
@@ -36,7 +36,7 @@ fun case_2(): Int {
fun b(): Int {
var c: Int? = null
if (c == null || 0 < c) c = 0
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int & kotlin.Int?")!>c<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int? & kotlin.Int")!>c<!>
return c ?: 0
}