Skip to content

Quick Assist "Replace method call with property expression" inserts wrong qualifier for delegate property #1308

@eric-milles

Description

@eric-milles

Consider the following:

class C {
  def p
}
void test(p) {
  new C().with {
    setP(null)
  }
}

Applying "Replace method call with property expression" (Ctrl+Shift+,) to "setP" results in "this.p = null" which no longer references the delegate property.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions