Skip to content

Commit

Permalink
Use else static if instead of static if
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Sep 22, 2011
1 parent fcacf20 commit c64c313
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions std/conv.d
Expand Up @@ -622,11 +622,11 @@ version (unittest)
private template toImmutable(T) { alias immutable(T) toImmutable; }
private template Mod2Conv(int n) if (0 <= n && n < 5)
{
static if (n == 0) alias Identity Mod2Conv;
static if (n == 1) alias toConst Mod2Conv;
static if (n == 2) alias toShared Mod2Conv;
static if (n == 3) alias toSharedConst Mod2Conv;
static if (n == 4) alias toImmutable Mod2Conv;
static if (n == 0) alias Identity Mod2Conv;
else static if (n == 1) alias toConst Mod2Conv;
else static if (n == 2) alias toShared Mod2Conv;
else static if (n == 3) alias toSharedConst Mod2Conv;
else static if (n == 4) alias toImmutable Mod2Conv;
}
}
unittest
Expand Down

0 comments on commit c64c313

Please sign in to comment.