JVM IR: Don't generate line numbers and null checks in SAM wrapper constructors

This commit is contained in:
Steven Schäfer
2020-11-02 14:40:08 +01:00
committed by Alexander Udalov
parent 68e2d0d245
commit 8574cb4466
7 changed files with 61 additions and 5 deletions
@@ -4386,6 +4386,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("samWrapperConstructorNonSynthetic.kt")
public void testSamWrapperConstructorNonSynthetic() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperConstructorNonSynthetic.kt");
}
@TestMetadata("samWrapperForNullInitialization.kt")
public void testSamWrapperForNullInitialization() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperForNullInitialization.kt");