mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-165033 Completion should prefer expected enum values over the constants from other enums, even if they're more recently used
a test proving it works
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
package foo;
|
||||
|
||||
import static foo.MyEnum.*;
|
||||
import static foo.MyEnumX.*;
|
||||
|
||||
public class Foo {
|
||||
void method(MyEnum e) { }
|
||||
void methodX(MyEnumX e) { }
|
||||
|
||||
{
|
||||
method(cons<caret>)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
enum MyEnum { const1, const2 }
|
||||
enum MyEnumX { constx1, constx2 }
|
||||
Reference in New Issue
Block a user