From c64c3134dac0eb1fb1699434f90f556df4554a8f Mon Sep 17 00:00:00 2001 From: k-hara Date: Thu, 22 Sep 2011 21:23:48 +0900 Subject: [PATCH] Use `else static` if instead of `static if` --- std/conv.d | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/std/conv.d b/std/conv.d index 4388e1e5023..63bcb197888 100644 --- a/std/conv.d +++ b/std/conv.d @@ -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