Fix compilation exception where overload ambiguity should be

#KT-16246 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-09-05 13:40:50 +03:00
parent ec512d1c8a
commit 6d4bb229ac
6 changed files with 47 additions and 4 deletions
@@ -2580,6 +2580,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("intersectionTypeOverloadWithWrongParameter.kt")
public void testIntersectionTypeOverloadWithWrongParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt");
doTest(fileName);
}
@TestMetadata("kt10036.kt")
public void testKt10036() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/resolve/kt10036.kt");
@@ -2580,6 +2580,12 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
doTest(fileName);
}
@TestMetadata("intersectionTypeOverloadWithWrongParameter.kt")
public void testIntersectionTypeOverloadWithWrongParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/resolve/intersectionTypeOverloadWithWrongParameter.kt");
doTest(fileName);
}
@TestMetadata("kt10036.kt")
public void testKt10036() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/resolve/kt10036.kt");