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: [email protected]
Reporter: [email protected]
/////////////////// 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
--