Summary: Can't recursively call function with auto return
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2012-02-11 
10:59:16 PST ---
module test;

auto test(int x)
    return test(1);

void main()

test.d(5): Error: forward reference to test

I was using tuple() returns and ran into this. Luckily I can work around it by
explicitly setting the return type, e.g. "Tuple!(bool, string, string) foo()".

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

Reply via email to