Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
0-v-0 committed Aug 2, 2024
1 parent 32229a4 commit d33f4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dmd/tokens.d
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ enum FirstCKeyword = TOK.inline;
// Assert that all token enum members have consecutive values and
// that none of them overlap
static assert(() {
foreach (idx, enumName; __traits(allMembers, TOK)) {
static foreach (idx, enumName; __traits(allMembers, TOK)) {
static assert(idx == __traits(getMember, TOK, enumName),
"Error: Expected TOK.", enumName, " to be ", idx, " but is ", __traits(getMember, TOK, enumName));
}
Expand Down

0 comments on commit d33f4b5

Please sign in to comment.