Skip to content

Quick Assist "Replace method call with property expression" inserts wrong qualifier for setter-based property with parameter name clash #1455

@eric-milles

Description

@eric-milles

Consider the following:

class C {
  C(p) {
    setP(p)
  }
  void setP(p) { ... }
}

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

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions