Bug 13832 – delegates that return ref do not output correctly to .di file
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-12-08T05:12:00Z
Last change time
2015-02-18T03:41:17Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0 by bugzilla — 2014-12-08T05:12:53Z
The source code:
alias ref int delegate() dg_t;
when compiled with:
dmd -c -H test.d
yields a .di file with:
alias int delegate() dg_t;
in it. The 'ref' got dropped, but it is still there as part of the type.