digitalmars.D.bugs - [Issue 22868] New: __traits(parameters) returns parameters of
- d-bugmail puremagic.com (20/20) Mar 10 2022 https://issues.dlang.org/show_bug.cgi?id=22868
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: nobody puremagic.com Reporter: moonlightsentinel disroot.org __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/vdqehddiompdoehhwewf forum.dlang.org --
Mar 10 2022