Fix TypeScript readonly error location (#9887)
This commit is contained in:
@@ -743,7 +743,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
|
||||
return;
|
||||
default:
|
||||
this.raise(
|
||||
node.operator,
|
||||
node.start,
|
||||
"'readonly' type modifier is only permitted on array and tuple literal types.",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user