Filter out equivalent calls before reporting "none applicable"

If a module is configured in such a way that the same function appears multiple
times via different dependencies, it's not helpful to report "none of the
following functions can be called", listing the same function multiple times
This commit is contained in:
Alexander Udalov
2016-09-29 12:44:23 +03:00
parent 5d37fab4f5
commit 610c549225
5 changed files with 56 additions and 4 deletions
@@ -12311,6 +12311,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("incompleteCodeNoNoneApplicable.kt")
public void testIncompleteCodeNoNoneApplicable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/multimodule/duplicateMethod/incompleteCodeNoNoneApplicable.kt");
doTest(fileName);
}
@TestMetadata("noGenericsInParams.kt")
public void testNoGenericsInParams() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/multimodule/duplicateMethod/noGenericsInParams.kt");