IDEA-91596 (test case)

This commit is contained in:
Roman Shevchenko
2013-03-19 00:01:57 +01:00
parent dc02052ec9
commit 4db079dbbe
4 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
package pkg.sub;
public class Sub1 { }

View File

@@ -0,0 +1,3 @@
package pkg.sub;
public class Sub2 { }

View File

@@ -0,0 +1,11 @@
package test;
class Test {
void test() {
pkg s0;
pkg.<error descr="Cannot resolve symbol 'Sub1'">Sub1</error> s1;
pkg.sub.<error descr="Cannot resolve symbol 'Sub2'">Sub2</error> s2;
}
public static class pkg { } // an unfortunate name
}

View File

@@ -302,6 +302,11 @@ public class AdvHighlightingTest extends DaemonAnalyzerTestCase {
doTest(BASE_PATH + "/packageClassClash2/pkg/Sub.java", BASE_PATH + "/packageClassClash2", false, false);
}
// todo[r.sh] IDEA-91596 (probably PJCRE.resolve() should be changed to qualifier-first model)
//public void testPackageAndClassConflict3() throws Exception {
// doTest(BASE_PATH + "/packageClassClash3/test/Test.java", BASE_PATH + "/packageClassClash3", false, false);
//}
public void testDefaultPackageAndClassConflict() throws Exception {
doTest(BASE_PATH + "/lang.java", false, false);
}