[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:
+18
@@ -1484,6 +1484,24 @@ public class ClassicNativeIrTextTestGenerated extends AbstractClassicNativeIrTex
|
||||
runTest("compiler/testData/ir/irText/expressions/ifElseIf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithArrayOperation.kt")
|
||||
public void testIfWithArrayOperation() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/ifWithArrayOperation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithAssignment.kt")
|
||||
public void testIfWithAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/ifWithAssignment.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithLoop.kt")
|
||||
public void testIfWithLoop() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/ifWithLoop.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("implicitCastInReturnFromConstructor.kt")
|
||||
public void testImplicitCastInReturnFromConstructor() throws Exception {
|
||||
|
||||
+18
@@ -1484,6 +1484,24 @@ public class FirLightTreeNativeIrTextTestGenerated extends AbstractFirLightTreeN
|
||||
runTest("compiler/testData/ir/irText/expressions/ifElseIf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithArrayOperation.kt")
|
||||
public void testIfWithArrayOperation() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/ifWithArrayOperation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithAssignment.kt")
|
||||
public void testIfWithAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/ifWithAssignment.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithLoop.kt")
|
||||
public void testIfWithLoop() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/ifWithLoop.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("implicitCastInReturnFromConstructor.kt")
|
||||
public void testImplicitCastInReturnFromConstructor() throws Exception {
|
||||
|
||||
+18
@@ -1484,6 +1484,24 @@ public class FirPsiNativeIrTextTestGenerated extends AbstractFirPsiNativeIrTextT
|
||||
runTest("compiler/testData/ir/irText/expressions/ifElseIf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithArrayOperation.kt")
|
||||
public void testIfWithArrayOperation() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/ifWithArrayOperation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithAssignment.kt")
|
||||
public void testIfWithAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/ifWithAssignment.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ifWithLoop.kt")
|
||||
public void testIfWithLoop() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/ifWithLoop.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("implicitCastInReturnFromConstructor.kt")
|
||||
public void testImplicitCastInReturnFromConstructor() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user