[IR] Extend test coverage for smart cast handling.
This commit is contained in:
+5
@@ -710,6 +710,11 @@ public class FirBlackBoxAgainstJavaCodegenTestGenerated extends AbstractFirBlack
|
||||
runTest("compiler/testData/codegen/boxAgainstJava/sam/samConstructorGenericSignature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastSamConversion.kt")
|
||||
public void testSmartCastSamConversion() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxAgainstJava/sam/smartCastSamConversion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Generated
+10
@@ -13125,6 +13125,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastToInt.kt")
|
||||
public void testSmartCastToInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("when.kt")
|
||||
public void testWhen() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/when.kt");
|
||||
@@ -30781,6 +30786,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleSmartCast.kt")
|
||||
public void testMultipleSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/multipleSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullSmartCast.kt")
|
||||
public void testNullSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt");
|
||||
|
||||
+10
@@ -1188,6 +1188,11 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
|
||||
runTest("compiler/testData/ir/irText/expressions/membersImportedFromObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleSmartCasts.kt")
|
||||
public void testMultipleSmartCasts() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/multipleSmartCasts.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleThisReferences.kt")
|
||||
public void testMultipleThisReferences() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/multipleThisReferences.kt");
|
||||
@@ -1453,6 +1458,11 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
|
||||
runTest("compiler/testData/ir/irText/expressions/whenReturnUnit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenSmartCastToEnum.kt")
|
||||
public void testWhenSmartCastToEnum() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenUnusedExpression.kt")
|
||||
public void testWhenUnusedExpression() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/whenUnusedExpression.kt");
|
||||
|
||||
Reference in New Issue
Block a user