www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2623] New: Function type drops ref spec

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2623

           Summary: Function type drops ref spec
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: andrei metalanguage.com


The following code fails to compile by failing the static assert:

alias int function() Fun;
alias ref int function() Gun;
static assert(!is(Fun == Gun));

The "ref" must be part of the function signature.


-- 
Jan 27 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2623


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2009-03-11 14:58 -------
Fixed dmd 2.026


-- 
Mar 11 2009