Bug 11295 – invalid accept: multiple definitions with optional arguments are incorrectly accepted

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-18T17:06:00Z
Last change time
2013-11-14T04:25:09Z
Assigned to
nobody
Creator
thelastmammoth

Comments

Comment #0 by thelastmammoth — 2013-10-18T17:06:16Z
This compiles but shouldn't (multiple definition) --- void main(){} void fun(string command, string option){ } void fun(string command){ } void fun(string command, int a=2){ } void fun(string command, string option=string.init){ } void fun(string command, string option=string.init){ } ---
Comment #1 by andrej.mitrovich — 2013-10-19T14:52:46Z
*** Issue 11296 has been marked as a duplicate of this issue. ***
Comment #2 by yebblies — 2013-11-14T04:25:09Z
*** This issue has been marked as a duplicate of issue 2789 ***