Skip to content

Commit

Permalink
fix Issue 16383 - 'Algebraic visit does not match const'
Browse files Browse the repository at this point in the history
  • Loading branch information
Cauterite committed Aug 13, 2016
1 parent 41df329 commit 90e7fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/variant.d
Expand Up @@ -2209,7 +2209,7 @@ private auto visitImpl(bool Strict, VariantType, Handler...)(VariantType variant
result.exceptionFuncIdx = dgidx;
}
}
else static if (is(Unqual!(Params[0]) == T))
else static if (is(Params[0] == T) || is(Unqual!(Params[0]) == T))
{
if (added)
assert(false, "duplicate overload specified for type '" ~ T.stringof ~ "'");
Expand Down

0 comments on commit 90e7fd0

Please sign in to comment.