www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11385] New: XXX is a nested function and cannot be accessed from XXX

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: thelastmammoth gmail.com



(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: -------
Oct 30 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11385


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid



https://github.com/D-Programming-Language/dmd/pull/2705

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 02 2013