Summary: implicit conversion to immutable fails for pure
                    delegates and function pointers
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-02-15 10:41:38 PST ---
DMD 2.058:

void main(){
    auto foo()pure{return new int[100];}
    immutable int[] x = foo(); // ok
    immutable int[] y = {return new int[100];}(); // ng
    immutable int[] z = delegate{return new int[100];}(); // ng

The code should compile.

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

Reply via email to