Skip to content

Completion inside super constructor invocation shows existing super parameters as options #61930

@FMorschel

Description

@FMorschel

Repro:

class A {
  A({
    int? myFirstNamedValue,
    int? mySecondNamedValue,
    int? myThirdNamedValue,
    int? myFourthNamedValue,
  });
}

class B extends A {
  B({super.myFirstNamedValue}) : super(^);
}

At the ^ I was expecting all A.new parameters but myFirstNamedValue. Though, as you can see, it still shows up on the list:

Image

CC @bwilkerson @DanTup @keertip

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-completionIssues with the analysis server's code completion featuretype-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