Skip to content

Annotation with missing attribute value shows no error when used on local variable #886

@eric-milles

Description

@eric-milles

Consider the following:

class C {
  void m() {
    @SuppressWarnings
    def local = 'unused'
  }
}

There should be a compiler error for missing annotation attribute "value" on line 3.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions