[Issue 12372] New: Forward reference error with auto type inference in overloaded functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 15 03:11:17 PDT 2014


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


--- Comment #0 from yazan.dabain at 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: -------


More information about the Digitalmars-d-bugs mailing list