Skip to content

Enum values not proposed on switch statement #764

Open
@mauromol

Description

@mauromol

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions