Skip to content

Commit

Permalink
Fix build on DMD 2.097.
Browse files Browse the repository at this point in the history
  • Loading branch information
FeepingCreature committed Oct 23, 2023
1 parent c6fd2e6 commit 6c89422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dlang.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Dub Tests
strategy:
matrix:
dc: [dmd-2.097.2, dmd-2.099.1, ldc-1.27.1, ldc-1.29.0]
dc: [dmd-2.097.2, dmd-2.099.1, dmd-2.102.2, ldc-1.27.1, ldc-1.29.0, ldc-1.32.2]

runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion src/serialized/util/SafeEnum.d
Expand Up @@ -14,7 +14,7 @@ if (is(T == enum))
{
static foreach (member; [EnumMembers!T])
{
static if (member.to!string.endsWith("_") && reservedIdentifier!(member.to!string[0 .. $ - 1]))
static if (member.to!string.endsWith("_") && reservedIdentifier!(member.to!string()[0 .. $ - 1]))
{
// we had no choice but to add a _ to the back, as it was a reserved identifier
case member.to!string[0 .. $ - 1]:
Expand Down

0 comments on commit 6c89422

Please sign in to comment.