Summary: Array of lazy sequence
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from 2010-08-17 06:01:25 PDT ---
Problem in building an array of lazy sequences. This D2 code:

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 = [r1, r2];

Fails, and DMD 2.048 shows:
Error: incompatible types for ((r1) ? (r2)): 'Map!(result,int[])' and

Additionally, the error message lacks a line number.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to