Remove unnecessary mixin in static assert.

This commit is contained in:
irritate 2013-06-18 21:21:36 -04:00
parent ebe93db8c1
commit 7f000bb980

View file

@ -603,14 +603,14 @@ unittest
{
// Issue #10130 - map of iota with const step.
const step = 2;
static assert(__traits(compiles, mixin("map!(i => i)(iota(0, 10, step))")));
static assert(__traits(compiles, map!(i => i)(iota(0, 10, step))));
// Need these to all by const to repro the float case, due to the
// CommonType template used in the float specialization of iota.
const floatBegin = 0.0;
const floatEnd = 1.0;
const floatStep = 0.02;
static assert(__traits(compiles, mixin("map!(i => i)(iota(floatBegin, floatEnd, floatStep))")));
static assert(__traits(compiles, map!(i => i)(iota(floatBegin, floatEnd, floatStep))));
}
/**