[Issue 4246] Delegate literals passed to variadic templates function incorrectly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 28 15:09:31 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4246
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #1 from bearophile_hugs at eml.cc 2010-05-28 15:09:26 PDT ---
I think this used to work:
import std.algorithm;
void main() {
auto arr = [1, 2, 3];
auto xr1 = map!("a * a")(arr); // OK
auto xr2 = map!((int x){ return x * x; })(arr); // ERR
auto xr3 = map!((x){ return x * x; })(arr); // ERR
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list