www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12372] New: Forward reference error with auto type inference in overloaded functions

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: nobody puremagic.com
        ReportedBy: yazan.dabain gmail.com


--- Comment #0 from yazan.dabain gmail.com 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: -------
Mar 15 2014