Bug 6117 – Parameter names of equivalent function aliases are merged

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-06-06T16:44:00Z
Last change time
2011-06-12T14:55:23Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2011-06-06T16:44:01Z
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.
Comment #1 by yebblies — 2011-06-12T14:55:23Z
*** This issue has been marked as a duplicate of issue 3358 ***