Skip to content

Override modifier in parameter declaration should have quickfixΒ #44009

@Kingwl

Description

@Kingwl

Bug Report

πŸ”Ž Search Terms

override, parameter declaration, quickfix

πŸ•— Version & Regression Information

  • I was unable to test this on prior versions because _______

⏯ Playground Link

Playground

πŸ’» Code

class B {
    foo = 1
}

class D1 extends B {
    constructor(
        public foo: number, // should have quickfix to add modifier, and better message
    ) {
        super();
    }
}

class D2 extends B {
    constructor(
        public override bar: number, // should have quickfix to remove modifier
    ) {
        super();
    }
}

πŸ™ Actual behavior

πŸ™‚ Expected behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: LS: Quick FixesEditor-provided fixes, often called code actions.Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions