[Issue 16179] New: [REG2.072] git HEAD: multiSort no longer callable with delegate with context

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 17 03:11:33 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16179

          Issue ID: 16179
           Summary: [REG2.072] git HEAD: multiSort no longer callable with
                    delegate with context
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: thecybershadow at gmail.com

//////// test.d ////////
import std.algorithm;

void main()
{
    int[] arr;
    int n;
    arr.multiSort!(
        (a, b) => a > b,
        (a, b) => a < n,
    );
}
////////////////////////

Introduced in https://github.com/dlang/phobos/pull/4235

--


More information about the Digitalmars-d-bugs mailing list