[Issue 13304] New: std.algorithm.reduce: "Unable to deduce an acceptable seed type" with float[]

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 15 16:25:42 PDT 2014


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

          Issue ID: 13304
           Summary: std.algorithm.reduce: "Unable to deduce an acceptable
                    seed type" with float[]
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P1
         Component: Phobos
          Assignee: nobody at puremagic.com
          Reporter: thecybershadow at gmail.com

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

void main()
{
    float[] nums;
    float sum = reduce!((a,b) => a + b)(nums);
}
//////////////////////////////////////////////

Introduced in https://github.com/D-Programming-Language/phobos/pull/2060

--


More information about the Digitalmars-d-bugs mailing list