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:
Paul Gschwendtner 2023-06-20 13:58:05 +00:00 committed by Pawel Kozlowski
parent 78791cea4d
commit f77bd0a2bd

View file

@ -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);
}
}