Skip to content

Commit

Permalink
Issue 8246: tuple fields should use reserved identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
H. S. Teoh committed Nov 18, 2014
1 parent e786dd3 commit 09f1163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/declaration.c
Expand Up @@ -1021,7 +1021,7 @@ void VarDeclaration::semantic(Scope *sc)
Parameter *arg = Parameter::getNth(tt->arguments, i);

OutBuffer buf;
buf.printf("_%s_field_%llu", ident->toChars(), (ulonglong)i);
buf.printf("__%s_field_%llu", ident->toChars(), (ulonglong)i);
const char *name = buf.extractString();
Identifier *id = Lexer::idPool(name);

Expand Down

0 comments on commit 09f1163

Please sign in to comment.