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:
peter
2017-02-01 17:42:12 +01:00
parent ed369dc999
commit 8c1e3a6103
2 changed files with 27 additions and 0 deletions
@@ -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 }