[Issue 6117] New: Parameter names of equivalent function aliases are merged
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 6 16:48:30 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6117
Summary: Parameter names of equivalent function aliases are
merged
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-06-06 16:44:01 PDT ---
void function(int a, int b) x;
void function(int c, int d) y;
void main()
{
writeln(typeof(x).stringof);
writeln(typeof(y).stringof);
}
Prints:
void function(int a, int b)
void function(int a, int b)
It seems the two alias get merged into one, and y will resolve to x. I don't
know what else could cause the loss of parameter names for y in this case.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list