Summary: recursive alias error with function pointer
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2012-07-29 
09:53:06 PDT ---
alias void function(Class.Type arg) FuncPtr;

class Class
    enum Type { Foo }
    alias FuncPtr* funcPtrPtr;

void main() { }

test.d(3): Error: alias test.FuncPtr recursive alias declaration

If you move "FuncPtr" below the class it works.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to