mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
![]() This fixes a warning one gets when compiling with warnings enabled: "phobos/std/algorithm/sorting.d(3122): Warning: calling testcase.foo.__lambda1 without side effects discards return value of type bool, prepend a cast(void) if intentional" Testcase that fails compilation with `-w`: ``` import std.algorithm.sorting; auto foo() { int[] v = [ 25, 7, 9, 2, 0, 5, 21 ]; return topN!((a, b) => a > b)(v, 100); } ``` |
||
---|---|---|
.. | ||
comparison.d | ||
internal.d | ||
iteration.d | ||
mutation.d | ||
package.d | ||
searching.d | ||
setops.d | ||
sorting.d |