http://d.puremagic.com/issues/show_bug.cgi?id=11295
Summary: invalid accept: multiple definitions with optional
arguments are incorrectly accepted
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: critical
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2013-10-18 17:06:16 PDT ---
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 from Andrej Mitrovic <[email protected]> 2013-10-19
14:52:46 PDT ---
*** Issue 11296 has been marked as a duplicate of this issue. ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------