Loading...
class Doc extends Base {
save() {
super.save();
}
}class Doc extends Base {
override save() {
super.save();
}
}With override, renaming or removing Base.save becomes a compile error instead of a silent new method.
override.noImplicitOverride is enabled, so every overriding member must be marked override.override, and methods that do not override the base do not.Only with noImplicitOverride. Without that option it is optional but still checked when present.
No, it is erased. It only tells the compiler to check that the base member exists.