Skip to content

STC: direct call on closure member indicated as error #1017

@eric-milles

Description

@eric-milles

Consider the following:

@groovy.transform.TypeChecked
class C {
  Closure action
  void meth() {
    action() // [Static type checking] - Cannot find matching method C#action().
  }
}

This was caused by changes for #999

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions