IDEA-68643 When completing a constant, the containing class is not imported

This commit is contained in:
peter
2011-04-26 16:39:45 +02:00
parent 9ec367f032
commit 40cb6b363c
8 changed files with 75 additions and 110 deletions
@@ -0,0 +1,7 @@
class Intermediate {
{
foo.Usage.foo(FO<caret>)
}
}
@@ -0,0 +1,9 @@
import foo.Super;
class Intermediate {
{
foo.Usage.foo(Super.FOO<caret>)
}
}
@@ -847,6 +847,12 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
public void testSuggestExpectedTypeMembersInCall() throws Throwable { doTest('\n') }
public void testSuggestExpectedTypeMembersNonImported() throws Throwable {
myFixture.addClass("package foo; public class Super { public static final Super FOO = null; }")
myFixture.addClass("package foo; public class Usage { public static void foo(Super s) {} }")
doTest('\n')
}
public void testClassNameWithInnersTab() throws Throwable { doTest('\t') }
public void testClassNameWithGenericsTab() throws Throwable {doTest('\t') }