Add test for checking ambiguity for root package and the same package

This commit is contained in:
Nikolay Krasko
2012-12-28 17:00:00 +04:00
parent f2e78d9064
commit ee227f01b9
3 changed files with 26 additions and 0 deletions
@@ -3810,6 +3810,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/scopes"), "kt", true);
}
@TestMetadata("AmbiguityBetweenRootAndPackage.kt")
public void testAmbiguityBetweenRootAndPackage() throws Exception {
doTest("compiler/testData/diagnostics/tests/scopes/AmbiguityBetweenRootAndPackage.kt");
}
@TestMetadata("ImportFromCurrentWithDifferentName.kt")
public void testImportFromCurrentWithDifferentName() throws Exception {
doTest("compiler/testData/diagnostics/tests/scopes/ImportFromCurrentWithDifferentName.kt");