mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
let exact prefix items be the ones that have exact prefix as any lookup string, not just the main one (IDEA-168948)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
class SomeClass {
|
||||
void foo(Point p) {
|
||||
p.smth(JSON<caret>);
|
||||
}
|
||||
}
|
||||
|
||||
interface Point {
|
||||
int FOO = 2;
|
||||
int JSON = 3;
|
||||
void smth(int x);
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class SomeClass {
|
||||
void foo(Point p) {
|
||||
p.smth(JSON<caret>);
|
||||
}
|
||||
}
|
||||
|
||||
interface Point {
|
||||
int FOO = 2;
|
||||
int JSON = 3;
|
||||
void smth(int x);
|
||||
}
|
||||
+5
@@ -776,4 +776,9 @@ class ContainerUtil extends ContainerUtilRt {
|
||||
assert LookupElementPresentation.renderElement(myFixture.lookupElements[3]).tailText.contains('int index')
|
||||
}
|
||||
|
||||
void testPreferExpectedTypeConstantOverSameNamedClass() {
|
||||
myFixture.addClass("package another; public class JSON {}")
|
||||
checkPreferredItems 0, 'Point.JSON', 'JSON'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user