www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16179] New: [REG2.072] git HEAD: multiSort no longer callable

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 puremagic.com
          Reporter: thecybershadow 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

--
Jun 17 2016