Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type inferencing for resolve strategy Closure.DELEGATE_ONLY #657

Closed
eric-milles opened this issue Jul 29, 2018 · 0 comments
Closed

Fix type inferencing for resolve strategy Closure.DELEGATE_ONLY #657

eric-milles opened this issue Jul 29, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@eric-milles
Copy link
Member

Consider the following:

class A {}
class B {
  def m(@DelegatesTo(value=A, strategy=Closure.DELEGATE_ONLY) Closure block) {
    ...
  }
  def x() {
    m // delegate is A, owner is B
      delegate
      owner
    }
  }
}

"delegate:, "owner" and other members of Closure are showing as unknown (underlined). DELEGATE_ONLY should skip owner but still resolve against the enclosing closure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant