IDEA-84025 Non-public class in different package interferes with code completion

This commit is contained in:
peter
2012-04-03 21:04:13 +02:00
parent accc2bf284
commit 1d2b7eaf23
2 changed files with 10 additions and 1 deletions
@@ -1263,4 +1263,13 @@ class Foo {
assert myFixture.file.text.contains('new File()')
}
public void "test inaccessible class in another package shouldn't prevent choosing by space"() {
myFixture.addClass("package foo; class b {}")
myFixture.configureByText 'a.java', 'class Foo {{ <caret> }}'
type 'b'
assert lookup?.currentItem?.lookupString == 'boolean'
type ' '
myFixture.checkResult 'class Foo {{ boolean <caret> }}'
}
}