Fix SAM wrapper generation in secondary constructor calls

Should simply invoke 'checkSamCall' in corresponding visitor method to
check if call arguments should be wrapped.
This commit is contained in:
Dmitry Petrov
2017-12-01 15:32:25 +03:00
parent 3431a1445c
commit 0db6e5c3f3
3 changed files with 32 additions and 0 deletions
@@ -787,6 +787,12 @@ public class BlackBoxAgainstJavaCodegenTestGenerated extends AbstractBlackBoxAga
doTest(fileName);
}
@TestMetadata("superInSecondaryConstructor.kt")
public void testSuperInSecondaryConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters/superInSecondaryConstructor.kt");
doTest(fileName);
}
@TestMetadata("superconstructor.kt")
public void testSuperconstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters/superconstructor.kt");