[Issue 2939] lazy evaluation not invoked for lambda function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 5 00:23:52 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2939
------- Comment #4 from cristian at zerobugs.org 2009-05-05 02:24 -------
Here's a proposed fix: in expression.c, at line 693 (using 2.029 as a
reference) add a check to see if arg is already a delegate:
if (arg->type->ty != Tdelegate) // <---- ADD THIS CHECK
arg = arg->toDelegate(sc, p->type);
--
More information about the Digitalmars-d-bugs
mailing list