Skip to content

Commit

Permalink
Merge pull request #4150 from quickfur/issue8246
Browse files Browse the repository at this point in the history
Issue 8246: tuple fields should use reserved identifiers
  • Loading branch information
yebblies committed Nov 18, 2014
2 parents e786dd3 + 09f1163 commit 76c006a
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 76c006a

Please sign in to comment.