Report about wrong number of type arguments instead of ambiguity

#KT-7975 Fixed
 #KT-1809 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-06-19 20:35:00 +03:00
parent 24f1bbfb46
commit 0f4497256b
5 changed files with 31 additions and 2 deletions
@@ -8692,6 +8692,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("wrongNumberOfTypeArgumentsDiagnostic.kt")
public void testWrongNumberOfTypeArgumentsDiagnostic() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt");
doTest(fileName);
}
@TestMetadata("compiler/testData/diagnostics/tests/generics/capturedParameters")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)