Report an error on dynamic types used as supertypes or upper bounds

This commit is contained in:
Andrey Breslav
2014-11-21 16:48:21 +03:00
parent 65164e95b5
commit ea36024893
7 changed files with 48 additions and 5 deletions
@@ -3818,6 +3818,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("supertypesAndBounds.kt")
public void testSupertypesAndBounds() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/dynamicTypes/supertypesAndBounds.kt");
doTest(fileName);
}
@TestMetadata("unsupported.kt")
public void testUnsupported() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/dynamicTypes/unsupported.kt");