https://d.puremagic.com/issues/show_bug.cgi?id=12372

           Summary: Forward reference error with auto type inference in
                    overloaded functions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2014-03-15 03:11:16 PDT ---
Test case:

auto foo(int) {
  return foo(1.0);
}

auto foo(double) {
  return 0;
}

void main() {
  auto boo = foo(0);
}


main.d(2): Error: forward reference to foo

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to