www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13832] New: delegates that return ref do not output correctly

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

          Issue ID: 13832
           Summary: delegates that return ref do not output correctly to
                    .di file
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

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.

--
Dec 07 2014