www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13304] New: std.algorithm.reduce: "Unable to deduce an


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

Aug 15 2014