http://d.puremagic.com/issues/show_bug.cgi?id=4699

           Summary: Functions in peer scopes cannot have the same name
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: wayo.cava...@gmail.com


--- Comment #0 from Eduardo Cavazos <wayo.cava...@gmail.com> 2010-08-21 
00:19:59 PDT ---
This program produces an error:

void main ()
{
  { int f0 () { return 10 ; } }

  { int f0 () { return 20 ; } }
}

$ rdmd test_scope_a.d
test_scope_a.d(6): Error: declaration f0 is already defined in another scope in
main

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

Reply via email to