Fix for KT-16411, KT-16412: Exception from compiler when try call SAM constructor where argument is callable reference to nested class inside object

#Fixed KT-16411
  #Fixed KT-16412
This commit is contained in:
Mikhael Bogdanov
2017-02-17 17:13:20 +01:00
parent 85f9e2e47b
commit a8625b632d
7 changed files with 69 additions and 0 deletions
@@ -152,6 +152,12 @@ public class BlackBoxAgainstJavaCodegenTestGenerated extends AbstractBlackBoxAga
doTest(fileName);
}
@TestMetadata("kt16412.kt")
public void testKt16412() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxAgainstJava/callableReference/kt16412.kt");
doTest(fileName);
}
@TestMetadata("publicFinalField.kt")
public void testPublicFinalField() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxAgainstJava/callableReference/publicFinalField.kt");