Skip to content

Rename refactoring doesn't rename named super formal parameters in subclasses. #61194

@fshcheglov

Description

@fshcheglov

In this code

class A {
  A({required int test});
}

class B extends A {
  B({required super.test});
}

class C extends B {
  C({required super.test});
}

Renaming int test in A would rename test in B({required super.test}); but not in C({required super.test});.

I personally encountered this bug when renaming / deprecating APIs in the analyzer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-refactoringIssues with analysis server refactoringsdevexp-serverIssues related to some aspect of the analysis servertype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions