On Monday, 9 October 2017 at 14:34:48 UTC, Zhuo Nengwen wrote:
//test(cast(ushort) 1, (m, c) => { writeln(m); });
That's a function that returns a function.Perhaps you meant to just remove the => and be left with a multi-line function.
Adam D. Ruppe via Digitalmars-d-learn Mon, 09 Oct 2017 07:55:43 -0700
On Monday, 9 October 2017 at 14:34:48 UTC, Zhuo Nengwen wrote:
//test(cast(ushort) 1, (m, c) => { writeln(m); });
That's a function that returns a function.Perhaps you meant to just remove the => and be left with a multi-line function.