August 21, 2010 [Issue 4699] New: Functions in peer scopes cannot have the same name | ||||
---|---|---|---|---|
| ||||
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: nobody@puremagic.com ReportedBy: wayo.cavazos@gmail.com --- Comment #0 from Eduardo Cavazos <wayo.cavazos@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: ------- |
Copyright © 1999-2021 by the D Language Foundation