Skip to content

Commit f7d031b

Browse files
chained static if conditions
1 parent 02c72f2 commit f7d031b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/conv.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ if (!(is(S : T) &&
10241024
}
10251025
}
10261026

1027-
static if (!is(S == class) && __traits(getAliasThis, S).length > 0)
1027+
else static if (!is(S == class) && __traits(getAliasThis, S).length > 0)
10281028
{
10291029
enum aliasName = __traits(getAliasThis, S)[0];
10301030

@@ -1037,7 +1037,7 @@ if (!(is(S : T) &&
10371037
}
10381038
}
10391039

1040-
static if (is(typeof(S.init.toString())))
1040+
else static if (is(typeof(S.init.toString())))
10411041
{
10421042
alias ToStringReturnType = typeof(S.init.toString());
10431043

0 commit comments

Comments
 (0)