override
keyword doesn't check symbol-key class members
#57141
Labels
Milestone
override
keyword doesn't check symbol-key class members
#57141
π Search Terms
override symbol
override symbol member
override in:title
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?#code/MYewdgzgLgBAZiEMC8MDKBPAtgIxAGwAoBKAbgFgAoYfAQwghgEEYBvKgXyqpvsYCEYAUwAeUIWAAmjFu0owFMEADchAJzUBLSUJgBtBCAC6JNjC6UOMIA
π» Code
π Actual behavior
It compiles.
π Expected behavior
There should be an error:
This member cannot have an 'override' modifier because it is not declared in the base class 'A'.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: