Bug 11296 – invalide accept: multiple conflicting definitions with optional arguments are accepted

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-18T17:08:00Z
Last change time
2013-10-19T14:52:45Z
Assigned to
nobody
Creator
thelastmammoth

Comments

Comment #0 by thelastmammoth — 2013-10-18T17:08:21Z
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:45Z
*** This issue has been marked as a duplicate of issue 11295 ***