[Issue 4661] Array Literal Incompatible Type Error Msg Should Include Line Number

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 17 19:58:27 PDT 2010


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


Andrei Alexandrescu <andrei at metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei at metalanguage.com


--- Comment #6 from Andrei Alexandrescu <andrei at metalanguage.com> 2010-08-17 19:58:25 PDT ---
I agree that the initial code shouldn't work. This code should:

import std.algorithm: map;
void main() {
    auto r1 = map!q{a+1}([1, 2, 3]);
    auto r2 = map!q{a+2}([1, 2, 3]);
    auto a = array(chain(r1, r2));
}

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