Skip to content

Commit 1b02776

Browse files
JesseCodeBoneschen ruixiang
andauthored
fix: incorrect error message for declaration (#2373)
Co-authored-by: chen ruixiang <[email protected]>
1 parent 75dbcfd commit 1b02776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@ export class Parser extends DiagnosticEmitter {
20952095
} else if (flags & CommonFlags.PRIVATE) {
20962096
this.error(
20972097
DiagnosticCode._0_modifier_cannot_be_used_here,
2098-
tn.range(accessStart, accessEnd), "protected"
2098+
tn.range(accessStart, accessEnd), "private"
20992099
); // recoverable
21002100
}
21012101
if (flags & CommonFlags.STATIC) {

0 commit comments

Comments
 (0)