Bug 11436 – Wrong ambiguity overloading error for functions with default arguments if there is an implicit cast

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-04T03:09:08Z
Last change time
2024-12-13T18:13:35Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Denis Shelomovskii
Moved to GitHub: dmd#17622 →

Comments

Comment #0 by verylonglogin.reg — 2013-11-04T03:09:08Z
--- class C {} void f(Object child, bool b1, bool b2, int i = 0) {} void f(Object child, bool b1, int i) {} void main() { C c = new C; f(null, true, true); // ok f(new Object, true, true); // ok f(new C, true, true); // Error: ...(C, bool, bool) matches both:... } ---
Comment #1 by robert.schadek — 2024-12-13T18:13:35Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17622 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB