mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-68643 When completing a constant, the containing class is not imported
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
class Intermediate {
|
||||
{
|
||||
foo.Usage.foo(FO<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import foo.Super;
|
||||
|
||||
class Intermediate {
|
||||
{
|
||||
foo.Usage.foo(Super.FOO<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+6
@@ -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') }
|
||||
|
||||
Reference in New Issue
Block a user