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


wfunct...@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wfunct...@hotmail.com


--- Comment #2 from wfunct...@hotmail.com 2011-02-22 11:46:25 PST ---
Apparently, type-inference also has a problem here:

This code:
    int b = 5;
    writeln(map!((a) { return a + b; })([0, 1, 2, 3]));
outputs:
    [1637916, 1637917, 1637918, 1637919]

if I specify the type of 'a' manually:
    int b = 5;
    writeln(map!((int a) { return a + b; })([0, 1, 2, 3]));
it outputs:
    [0, 1, 2, 3]

Of course, both answers are incorrect, but this might be an indication of
another bug; I don't know.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to