mirror of
https://github.com/dlang/phobos.git
synced 2025-05-06 02:45:12 +03:00
std.algorithm.iteration: Fix typo.
Taken from patch for gdc bugzilla PR other/93756
This commit is contained in:
parent
efe9de415d
commit
c882086f85
1 changed files with 2 additions and 2 deletions
|
@ -4037,7 +4037,7 @@ The number of seeds must be correspondingly increased.
|
|||
static assert(!is(typeof(reduce!(min, max)(tuple(c), "hello"))));
|
||||
//"Seed (dchar, dchar, dchar) does not have the correct amount of fields (should be 2)"
|
||||
static assert(!is(typeof(reduce!(min, max)(tuple(c, c, c), "hello"))));
|
||||
//"Incompatable function/seed/element: all(alias pred = "a")/int/dchar"
|
||||
//"Incompatible function/seed/element: all(alias pred = "a")/int/dchar"
|
||||
static assert(!is(typeof(reduce!all(1, "hello"))));
|
||||
static assert(!is(typeof(reduce!(all, all)(tuple(1, 1), "hello"))));
|
||||
}
|
||||
|
@ -4532,7 +4532,7 @@ The number of seeds must be correspondingly increased.
|
|||
static assert(!__traits(compiles, cumulativeFold!(min, max)("hello", tuple(c))));
|
||||
//"Seed (dchar, dchar, dchar) does not have the correct amount of fields (should be 2)"
|
||||
static assert(!__traits(compiles, cumulativeFold!(min, max)("hello", tuple(c, c, c))));
|
||||
//"Incompatable function/seed/element: all(alias pred = "a")/int/dchar"
|
||||
//"Incompatible function/seed/element: all(alias pred = "a")/int/dchar"
|
||||
static assert(!__traits(compiles, cumulativeFold!all("hello", 1)));
|
||||
static assert(!__traits(compiles, cumulativeFold!(all, all)("hello", tuple(1, 1))));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue