JS: prohibit using more than one argument in indexed access with dynamic receiver (see KT-6580)

This commit is contained in:
Alexey Andreev
2016-12-08 17:09:53 +03:00
parent 627dd66ed5
commit fc6eaa015f
10 changed files with 60 additions and 5 deletions
@@ -146,6 +146,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
doTest(fileName);
}
@TestMetadata("indexedAccess.kt")
public void testIndexedAccess() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/indexedAccess.kt");
doTest(fileName);
}
@TestMetadata("inference.kt")
public void testInference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/inference.kt");