Raw FIR/LT: use similar sources for delegated constructor calls

After this commit all IR source range tests behave in the same way
for FIR/PSI and FIR/LT, test data is now consistent
This commit is contained in:
Mikhail Glukhikh
2023-10-02 11:16:25 +02:00
committed by Space Team
parent 4ed6ece78b
commit 9d3bf69212
10 changed files with 25 additions and 33 deletions
@@ -1,13 +1,12 @@
// COMPARE_WITH_LIGHT_TREE
// ISSUE: KT-40851
fun error(): Nothing = throw Exception()
<!UNREACHABLE_CODE{LT}!>class Some<!UNREACHABLE_CODE{PSI}!>()<!> {
class Some<!UNREACHABLE_CODE!>()<!> {
var x: Int
val y: Int =<!> error()
val y: Int = error()
<!UNREACHABLE_CODE{LT}!>init {
init {
<!UNREACHABLE_CODE!>x = 1<!>;
}
}<!>
}
@@ -1,4 +1,3 @@
// COMPARE_WITH_LIGHT_TREE
// ISSUE: KT-40851
fun error(): Nothing = throw Exception()