Summary: Cannot declare a variable of type "X function() ref"
                    without auto
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-04-10 01:16:36 PDT ---
DMD rejects explicit declarations of variables of type "X function() ref",
while internally this is a valid type:

int a;
ref int g(){return a;}

int main(){
    //ref int function() f=&g; //error
    //int function ref() f=&g; //error
    auto f=&g; //ok
    writeln(typeof(f).stringof); //"int function() ref"

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

Reply via email to