don't suggest expected type members twice when they are statically imported (IDEA-79426)

This commit is contained in:
peter
2011-12-29 16:49:25 +01:00
parent 8484fde96f
commit a48a9f5efe
9 changed files with 81 additions and 27 deletions
@@ -0,0 +1,12 @@
import static Super.FOO;
class Super {
public static final Super FOO = null;
public static final Super FOX = true;
}
class Intermediate {
Super s = FO<caret>
}
@@ -938,6 +938,11 @@ public class ListUtils {
public void testSuggestExpectedTypeMembersInCall() throws Throwable { doTest('\n') }
public void testExpectedTypesDotSelectsItem() throws Throwable { doTest('.') }
public void testExpectedTypeMembersVersusStaticImports() throws Throwable {
configure()
assertStringItems('FOO', 'FOX')
}
public void testDoubleExpectedTypeFactoryMethod() throws Throwable {
configure()
assertStringItems('Key', 'create', 'create')