[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:
@@ -11,9 +11,9 @@ fun case_1(a: Interface1?, b: Interface2?) {
|
||||
a as Interface2?
|
||||
val c = select(a, b)
|
||||
if (c != null) {
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2 & Interface1 & Interface2? & Interface1?")!>c<!>.itest()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2 & Interface1 & Interface2? & Interface1?")!>c<!>.itest1()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2 & Interface1 & Interface2? & Interface1?")!>c<!>.itest2()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2? & Interface1? & Interface2 & Interface1")!>c<!>.itest()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2? & Interface1? & Interface2 & Interface1")!>c<!>.itest1()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2? & Interface1? & Interface2 & Interface1")!>c<!>.itest2()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,9 +90,9 @@ fun case_6(a: Interface1?, b: Interface2?) {
|
||||
|
||||
val c = select(a, b)
|
||||
c ?: return
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2 & Interface1 & Interface2? & Interface1?")!>c<!>.itest()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2 & Interface1 & Interface2? & Interface1?")!>c<!>.itest1()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2 & Interface1 & Interface2? & Interface1?")!>c<!>.itest2()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2? & Interface1? & Interface2 & Interface1")!>c<!>.itest()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2? & Interface1? & Interface2 & Interface1")!>c<!>.itest1()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2? & Interface1? & Interface2 & Interface1")!>c<!>.itest2()
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -107,9 +107,9 @@ fun case_7(a: Interface1?, b: Interface2?) {
|
||||
val bar = l2@ fun() {
|
||||
val c = select(a, b)
|
||||
c ?: return@l2
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2 & Interface1 & Interface2? & Interface1?")!>c<!>.itest()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2 & Interface1 & Interface2? & Interface1?")!>c<!>.itest1()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2 & Interface1 & Interface2? & Interface1?")!>c<!>.itest2()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2? & Interface1? & Interface2 & Interface1")!>c<!>.itest()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2? & Interface1? & Interface2 & Interface1")!>c<!>.itest1()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("Interface2? & Interface1? & Interface2 & Interface1")!>c<!>.itest2()
|
||||
}
|
||||
return bar
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user