[FIR2IR] Don't generate excess IR block from FirSingleExpressionBlock

This is needed to unify K1 and K2 behavior.

#KT-65064
#KT-63781 Fixed
This commit is contained in:
Ivan Kylchik
2023-12-25 13:59:16 +01:00
committed by Space Team
parent a56bebe44e
commit 86e6912447
35 changed files with 2394 additions and 35 deletions
@@ -1349,6 +1349,21 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
runTest("compiler/testData/ir/irText/expressions/ifElseIf.kt");
}
@TestMetadata("ifWithArrayOperation.kt")
public void testIfWithArrayOperation() throws Exception {
runTest("compiler/testData/ir/irText/expressions/ifWithArrayOperation.kt");
}
@TestMetadata("ifWithAssignment.kt")
public void testIfWithAssignment() throws Exception {
runTest("compiler/testData/ir/irText/expressions/ifWithAssignment.kt");
}
@TestMetadata("ifWithLoop.kt")
public void testIfWithLoop() throws Exception {
runTest("compiler/testData/ir/irText/expressions/ifWithLoop.kt");
}
@TestMetadata("implicitCastInReturnFromConstructor.kt")
public void testImplicitCastInReturnFromConstructor() throws Exception {
runTest("compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.kt");