Skip to content

noImplicitOverride complains about static property not overriding non-static property #43563

Closed
@mjbvz

Description

@mjbvz

Bug Report

🔎 Search Terms

  • noImplicitOverride
  • static

🕗 Version & Regression Information

4.3.0-dev.20210406

💻 Code

Using --noImplicitOverride:

export class Foo {
    kind = 1
}

class SubFoo extends Foo {
    static kind = '123';
}

🙁 Actual behavior

On static kind = 123, I see:

This member must have an 'override' modifier because it overrides a member in the base class 'Foo'.

🙂 Expected behavior

I don't think this should be an issue. SubFoo.kind is distinct from the Foo.kind instance property

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions