mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor: fix lint warning in compiler code by adding explicit override (#50772)
We have a lint rule configured that enforces that any abstract member implementation uses an explicit `override` identifier. This ensures that downstream classes will have errors if the parent abstract class suddenly removes the abstract member. The lint rule, living in the dev-infra repository, occasionally does miss some places due to a temporary TS version mismatch that causes syntax kind indices to be different. Looks like we are now matching again and there is a new lint failure that got introduced recently. This commit fixes that error. PR Close #50772
This commit is contained in:
parent
78791cea4d
commit
f77bd0a2bd
1 changed files with 1 additions and 1 deletions
|
|
@ -988,7 +988,7 @@ export class LiteralArrayExpr extends Expression {
|
|||
return visitor.visitLiteralArrayExpr(this, context);
|
||||
}
|
||||
|
||||
clone(): LiteralArrayExpr {
|
||||
override clone(): LiteralArrayExpr {
|
||||
return new LiteralArrayExpr(this.entries.map(e => e.clone()), this.type, this.sourceSpan);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue