mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 21:43:33 +07:00
IDEA-86286 Java: bad completion (interface without package?)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
import java.util.*;
|
||||
import java.util.List;
|
||||
|
||||
class Zoo {
|
||||
{
|
||||
List<String> l = new ArrayList<Stri<caret>>
|
||||
}
|
||||
}
|
||||
+7
@@ -1294,6 +1294,13 @@ public class ListUtils {
|
||||
assert !('return' in myFixture.lookupElementStrings)
|
||||
}
|
||||
|
||||
public void testDuplicateExpectedTypeInTypeArgumentList() {
|
||||
configure()
|
||||
def items = myFixture.lookupElements.findAll { it.lookupString == 'String' }
|
||||
assert items.size() == 1
|
||||
assert LookupElementPresentation.renderElement(items[0]).tailText?.contains('java.lang')
|
||||
}
|
||||
|
||||
public void testSameSignature() {
|
||||
configure()
|
||||
lookup.setCurrentItem(myItems[1])
|
||||
|
||||
Reference in New Issue
Block a user