[Issue 5753] Disallow map() of void function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 19 07:15:37 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5753



--- Comment #1 from bearophile_hugs at eml.cc 2011-03-19 07:12:24 PDT ---
A simpler example:


import std.algorithm;
void foo(int x) {}
void main() {
    int[] data = [1, 2, 3];
    map!foo(data);
}

-- 
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