Summary: Can't overload nested functions
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from David Simcha <> 2009-11-09 20:35:03 PST ---
Nested functions don't overload like non-nested functions.  If this behavior is
correct, it seems like a fairly arbitrary limitation, but it should be
clarified in the spec.

void main() {
    static void foo(uint a, float b) {}
    static void foo(float a, uint b) {}

Error: declaration foo is already defined

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

Reply via email to