Skip to content

Commit 647ada6

Browse files
Max Heibermheiber
authored andcommitted
WIP
1 parent b2d6aad commit 647ada6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ namespace ts {
13261326
const isPrivateName = !!(scanner.getTokenFlags() & TokenFlags.PrivateName);
13271327
const privateNameIsAllowed = !!(parsingContext & (1 << ParsingContext.ClassMembers));
13281328
if (isPrivateName && !privateNameIsAllowed) {
1329-
diagnosticMessage = Diagnostics.File_0_does_not_exist // TODO, real diagnostic
1329+
diagnosticMessage = Diagnostics.Private_names_are_not_allowed_outside_of_class_bodies;
13301330
}
13311331
else if (isIdentifier && (!isPrivateName || privateNameIsAllowed)) {
13321332
const node = <Identifier>createNode(SyntaxKind.Identifier);

0 commit comments

Comments
 (0)