www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11295] New: invalid accept: multiple definitions with optional arguments are incorrectly accepted

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: nobody puremagic.com
        ReportedBy: thelastmammoth gmail.com


--- Comment #0 from thelastmammoth gmail.com 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 <andrej.mitrovich gmail.com> 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: -------
Oct 19 2013