[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
@@ -9,8 +9,8 @@
*/
fun case_1(x: Any?) {
x is ClassLevel1 || return
<!DEBUG_INFO_EXPRESSION_TYPE("ClassLevel1 & kotlin.Any?")!>x<!>
<!DEBUG_INFO_EXPRESSION_TYPE("ClassLevel1 & kotlin.Any?")!>x<!>.test1()
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any? & ClassLevel1")!>x<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any? & ClassLevel1")!>x<!>.test1()
}
/*
@@ -20,8 +20,8 @@ fun case_1(x: Any?) {
*/
fun case_2(x: Any?) {
x !is ClassLevel1 && return
<!DEBUG_INFO_EXPRESSION_TYPE("ClassLevel1 & kotlin.Any?")!>x<!>
<!DEBUG_INFO_EXPRESSION_TYPE("ClassLevel1 & kotlin.Any?")!>x<!>.test1()
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any? & ClassLevel1")!>x<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any? & ClassLevel1")!>x<!>.test1()
}
/*
@@ -30,6 +30,6 @@ fun case_2(x: Any?) {
*/
fun case_3(x: Any?) {
x as? ClassLevel1 ?: return
<!DEBUG_INFO_EXPRESSION_TYPE("ClassLevel1 & kotlin.Any?")!>x<!>
<!DEBUG_INFO_EXPRESSION_TYPE("ClassLevel1 & kotlin.Any?")!>x<!>.test1()
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any? & ClassLevel1")!>x<!>
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any? & ClassLevel1")!>x<!>.test1()
}