JVM_IR: Add null-checks in SAM wrapper constructors (KT-50108)

This commit is contained in:
Steven Schäfer
2021-12-08 11:17:58 +01:00
committed by Alexander Udalov
parent 7f531d8426
commit 0da23198e6
7 changed files with 102 additions and 3 deletions
@@ -35460,6 +35460,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Sam extends AbstractLightAnalysisModeTest {
@TestMetadata("kt50108.kt")
public void ignoreKt50108() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt50108.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@@ -35593,6 +35598,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/sam/kt49226.kt");
}
@TestMetadata("kt50108_java.kt")
public void testKt50108_java() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt50108_java.kt");
}
@TestMetadata("kt50171.kt")
public void testKt50171() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt50171.kt");