mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Further reductions
This commit is contained in:
parent
56da8e597d
commit
1e80655e52
3 changed files with 68 additions and 12 deletions
|
@ -352,10 +352,7 @@ module std.algorithm;
|
|||
|
||||
import std.functional : unaryFun, binaryFun;
|
||||
import std.range;
|
||||
import std.traits : isIntegral, mostNegative, isSomeString, isMutable, Select,
|
||||
isArray, hasElaborateAssign, isStaticArray, isNarrowString, isIterable,
|
||||
Unqual, hasElaborateDestructor, unsigned, ForeachType, isDynamicArray,
|
||||
hasElaborateCopyConstructor, CommonType;
|
||||
import std.traits;
|
||||
import std.typetuple : TypeTuple, staticMap, allSatisfy;
|
||||
|
||||
version(unittest)
|
||||
|
@ -657,6 +654,7 @@ unittest
|
|||
|
||||
unittest
|
||||
{
|
||||
import std.range;
|
||||
// Issue #10130 - map of iota with const step.
|
||||
const step = 2;
|
||||
static assert(__traits(compiles, map!(i => i)(iota(0, 10, step))));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue