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

Code assist proposes completions for delegate or owner regardless of strategy set by DelegatesTo #772

Closed
eric-milles opened this issue Nov 28, 2018 · 0 comments
Assignees
Milestone

Comments

@eric-milles
Copy link
Member

eric-milles commented Nov 28, 2018

Consider the following:

class C {
  def m(@DelegatesTo(value=Type, strategy=?) Closure block) { ... }
}
new C().m {
  |
}

Content assist (Ctrl+Space) at | should not include proposals for C if strategy is DELEGATE_ONLY or TO_SELF. Content assist (Ctrl+Space) at | should not include proposals for Type if strategy is OWNER_ONLY or TO_SELF.

Note: Proposals could be offered for owner and delegate in these cases as long as necessary qualifier is included in completion (see #364).

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

No branches or pull requests

1 participant