Fix access to top-level declarations inside anonymous initializer

#KT-16583 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-03-02 13:52:19 +03:00
parent 0e5603f644
commit e2dcec62d3
5 changed files with 55 additions and 2 deletions
@@ -3406,6 +3406,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("initializerWithSecondaryConstructor.kt")
public void testInitializerWithSecondaryConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/constructorConsistency/initializerWithSecondaryConstructor.kt");
doTest(fileName);
}
@TestMetadata("initwithgetter.kt")
public void testInitwithgetter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/constructorConsistency/initwithgetter.kt");