Bug 11385 – XXX is a nested function and cannot be accessed from XXX

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-30T11:31:12Z
Last change time
2023-05-06T08:40:52Z
Keywords
pull, rejects-valid
Assigned to
No Owner
Creator
thelastmammoth
See also
https://issues.dlang.org/show_bug.cgi?id=12204, https://issues.dlang.org/show_bug.cgi?id=23896

Comments

Comment #0 by thelastmammoth — 2013-10-30T11:31:12Z
(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 }
Comment #1 by k.hara.pg — 2013-11-02T03:59:39Z