https://issues.dlang.org/show_bug.cgi?id=22868
Issue ID: 22868
Summary: __traits(parameters) returns parameters of delegate
instead of function
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
__traits(parameters) currently yields the parameters of the delegate when the
foreach iterates over an aggregate using opApply. This is wrong and leaks an
implementation detail into user code.
See the discussion thread here:
https://forum.dlang.org/thread/[email protected]
--