Skip to content

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

@eric-milles

Description

@eric-milles

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).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions