mirror of
https://github.com/dlang/phobos.git
synced 2025-05-02 16:10:45 +03:00
Remove unnecessary mixin in static assert.
This commit is contained in:
parent
ebe93db8c1
commit
7f000bb980
1 changed files with 2 additions and 2 deletions
|
@ -603,14 +603,14 @@ unittest
|
||||||
{
|
{
|
||||||
// Issue #10130 - map of iota with const step.
|
// Issue #10130 - map of iota with const step.
|
||||||
const step = 2;
|
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
|
// Need these to all by const to repro the float case, due to the
|
||||||
// CommonType template used in the float specialization of iota.
|
// CommonType template used in the float specialization of iota.
|
||||||
const floatBegin = 0.0;
|
const floatBegin = 0.0;
|
||||||
const floatEnd = 1.0;
|
const floatEnd = 1.0;
|
||||||
const floatStep = 0.02;
|
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))));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue