Summary: Function type drops ref spec
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

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.


Reply via email to