Refine double colon LHS resolution if expression is an object

This commit is contained in:
Alexander Udalov
2016-07-01 16:05:40 +03:00
parent 5a6237b357
commit 7b59864ed9
6 changed files with 131 additions and 4 deletions
@@ -1721,6 +1721,18 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/bound"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("classVsStarImportedCompanion.kt")
public void testClassVsStarImportedCompanion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/bound/classVsStarImportedCompanion.kt");
doTest(fileName);
}
@TestMetadata("classVsStarImportedObject.kt")
public void testClassVsStarImportedObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/bound/classVsStarImportedObject.kt");
doTest(fileName);
}
@TestMetadata("companionObject.kt")
public void testCompanionObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/callableReference/bound/companionObject.kt");