KT-9371 Callable reference resolve should not prefer one of the overloads by some magic reasons

#KT-9371 Fixed
This commit is contained in:
Stanislav Erokhin
2015-10-19 14:55:32 +03:00
parent 891e033d5b
commit 553834fa9e
12 changed files with 131 additions and 15 deletions
@@ -2015,6 +2015,18 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("overloads.kt")
public void testOverloads() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/resolve/overloads.kt");
doTest(fileName);
}
@TestMetadata("overloadsMember.kt")
public void testOverloadsMember() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/resolve/overloadsMember.kt");
doTest(fileName);
}
@TestMetadata("valVsFun.kt")
public void testValVsFun() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/resolve/valVsFun.kt");