[Issue 11385] New: XXX is a nested function and cannot be accessed from XXX

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 30 11:31:13 PDT 2013


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

           Summary: XXX is a nested function and cannot be accessed from
                    XXX
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: thelastmammoth at gmail.com


--- Comment #0 from thelastmammoth at gmail.com 2013-10-30 11:31:12 PDT ---
(also tried on dmd_064 beta 4)

auto fun1(T)(T a){ return a*2;  }  
void main(){
  auto fun2(T)(T a){ return a*2;  }
  import std.algorithm; 
  [1].map!(a=>fun1(a));//OK
  [1].map!(a=>fun2(a));//NG:XXX is a nested function and cannot be accessed
from XXX
}

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