[Issue 5939] New: Cannot copy std.algorithm.map

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 6 22:39:31 PDT 2011


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

           Summary: Cannot copy std.algorithm.map
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dsimcha at yahoo.com


--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2011-05-06 22:35:37 PDT ---
import std.algorithm;

void fun(T)(T x) {
    T xSaved;
}


unittest {
    double[] x;
    fun(map!"a * a"(x));
}

DMD 2.053 beta:
test9.d(4): Error: function std.algorithm.map!("a * a").map!(double[]).map is a
nested function and cannot be accessed from __unittest1
test9.d(4): Error: function std.algorithm.map!("a * a").map!(double[]).map is a
nested function and cannot be accessed from fun

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