Forbid dynamic on the RHS of is and as

This commit is contained in:
Andrey Breslav
2014-11-13 04:21:27 +02:00
parent 645d931a9e
commit c8029307fa
8 changed files with 62 additions and 6 deletions
@@ -3734,6 +3734,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("dynamicCastTarget.kt")
public void testDynamicCastTarget() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/dynamicTypes/dynamicCastTarget.kt");
doTest(fileName);
}
@TestMetadata("dynamicSafeCalls.kt")
public void testDynamicSafeCalls() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/dynamicTypes/dynamicSafeCalls.kt");