Fix issue 15320

This commit is contained in:
Dragos Carp 2015-11-13 03:45:29 +01:00
parent f5ce17346d
commit eb293b5063
11 changed files with 1038 additions and 1043 deletions

View file

@ -765,14 +765,14 @@ unittest
// Issue #10130 - map of iota with const step.
const step = 2;
static assert(__traits(compiles, map!(i => i)(iota(0, 10, step))));
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, map!(i => i)(iota(floatBegin, floatEnd, floatStep))));
map!(i => i)(iota(floatBegin, floatEnd, floatStep));
}
@safe unittest