Skip to content

Fix support for anonymous inner class in default argument expression #924

@eric-milles

Description

@eric-milles

Consider the following:

void meth(Runnable action = new Runnable() {
  @Override void run() {
    print 'works'
  }
}) {
  action.run()
}

Currently this fails with exception when trying to find method scope for the anon. inner class.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions