[Issue 23116] foreach with opApply infer ref when opApply delegate is templated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 16 18:48:49 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23116

--- Comment #5 from Luís Ferreira <contact at lsferreira.net> ---
Ok, I found the problem. The compiler seem to choose right for function
declarations, but there is no logic for template declarations:
https://github.com/dlang/dmd/blob/master/src/dmd/opover.d#L1598

--


More information about the Digitalmars-d-bugs mailing list