groovy-eclipse icon indicating copy to clipboard operation
groovy-eclipse copied to clipboard

Enum values not proposed on switch statement

Open mauromol opened this issue 7 years ago • 0 comments

Follow-up to #762.

Consider the following enum:

package test40;
public enum MyEnum {
	FOO, BAR;
}

And the following Groovy class:

package test40
class Test40 {
	void foo() {
		MyEnum e = MyEnum.FOO
		switch(e) {
			case |
		}
	}
}

Let the cursor be at "|" and invoke code assist: I would expected to see MyEnum.FOO and MyEnum.BAR (as the top suggestions).

mauromol avatar Nov 19 '18 09:11 mauromol