why are types mismatch?

David Nadlinger code at klickverbot.at
Tue Oct 1 11:24:12 PDT 2013


On Tuesday, 1 October 2013 at 18:10:05 UTC, deadalnix wrote:
> bar!((int i)=> i*2) is different because (int i) => i*2 is 
> probably a template.

Also, it will be inferred as pure, nothrow and @safe.

David


More information about the Digitalmars-d mailing list