fix single-file builds again. add a comment as a reminder.

This commit is contained in:
Cameron Ross 2018-04-10 05:03:19 -03:00
parent 6532251979
commit a35536fe59
No known key found for this signature in database
GPG key ID: 777897D98DC91C54

View file

@ -157,7 +157,8 @@ private struct Pair
// //
// useTag determines whether or not we consider node tags // useTag determines whether or not we consider node tags
// in the comparison. // in the comparison.
int cmp(Flag!"useTag" useTag)(ref const(Pair) rhs) const // Note: @safe isn't properly inferred in single-file builds due to a bug.
int cmp(Flag!"useTag" useTag)(ref const(Pair) rhs) const @safe
{ {
const keyCmp = key.cmp!useTag(rhs.key); const keyCmp = key.cmp!useTag(rhs.key);
return keyCmp != 0 ? keyCmp return keyCmp != 0 ? keyCmp