Skip to content

Fix type inferencing, syntax highlighting and content assist for enum static initializers #1417

@eric-milles

Description

@eric-milles

Consider the following:

enum E {
  FOO, BAR, BAZ
  static final Set<String> NAMES
  static {
    Set<String> names = []
    names.add('foo')
    names.add('bar')
    names.add('baz')
    NAMES = Collections.unmodifiableSet(names)
  }
}

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions