[FIR2IR] Set correct endOffset for the IrBranch

We want to use end offset of branch's result as the end for the whole
branch, not just the end of its condition.

#KT-63779 Fixed
This commit is contained in:
Ivan Kylchik
2023-12-21 15:26:05 +01:00
committed by Space Team
parent 582dd1d3c0
commit a56bebe44e
10 changed files with 103 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
// In this test K2 behaviour is preferable.
fun topLevelMethod() {
var z = 3
if(true) { z = 4 } else { z = 5 }
}