Report error on bound callable references in compatibility mode

Previously examples were failing with IllegalStateException from JVM back-end
because there was an error type without any error reported
This commit is contained in:
Alexander Udalov
2016-10-06 16:40:05 +03:00
parent 73dc5fefcb
commit 2e4592c6dc
8 changed files with 118 additions and 8 deletions
@@ -19457,6 +19457,18 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/sourceCompatibility/noBoundCallableReferences"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("boundCallableReference.kt")
public void testBoundCallableReference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/sourceCompatibility/noBoundCallableReferences/boundCallableReference.kt");
doTest(fileName);
}
@TestMetadata("boundClassLiteral.kt")
public void testBoundClassLiteral() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/sourceCompatibility/noBoundCallableReferences/boundClassLiteral.kt");
doTest(fileName);
}
@TestMetadata("qualifiedJavaClassLiteralInKClassExtension.kt")
public void testQualifiedJavaClassLiteralInKClassExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/sourceCompatibility/noBoundCallableReferences/qualifiedJavaClassLiteralInKClassExtension.kt");