testdata for IDEA-132404

This commit is contained in:
Anna.Kozlova
2016-11-25 19:31:44 +01:00
parent 927f3ccaa1
commit 4c2b4ed877
2 changed files with 28 additions and 0 deletions
@@ -0,0 +1,24 @@
package foo;
import foo.A.*;
import foo.A.Person;
import foo.B.BasicPerson;
class Client {
public void method(OtherClass otherClass) {
Person person = null;
BasicPerson person2 = null;
}
}
class A {
public interface Person {}
public static class BasicPerson implements Person {}
public static class OtherClass {}
}
class B {
public interface Person {}
public static class BasicPerson implements Person {}
public static class OtherClass {}
}
@@ -45,6 +45,10 @@ public class OptimizeImportsTest extends OptimizeImportsTestCase {
doTest();
}
public void testSameNamedImportedClasses() throws Exception {
doTest();
}
private void doTest() throws Exception {
doTest(".java");
}