digitalmars.D.bugs - [Issue 1131] New: New overload conflict
- d-bugmail puremagic.com (31/31) Apr 12 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1131
- d-bugmail puremagic.com (5/5) Apr 12 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1131
- d-bugmail puremagic.com (11/11) Sep 29 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1131
http://d.puremagic.com/issues/show_bug.cgi?id=1131 Summary: New overload conflict Product: D Version: 1.011 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: chris dprogramming.com Overload conflict introduced in DMD v1.011. Code similar to the following has the problem, although the code tested by itself doesn't cause the error: struct Color { static void fromRgb(uint rgb) { } static void fromRgb(ubyte alpha, uint rgb) { } } void main() { Color.fromRgb(0); // Error: (0) matches with both (uint) and (ubyte, uint) Color.fromRgb(cast(uint)0); // Works } --
Apr 12 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1131 The example, as the report says, works fine. I put it in the test suite anyway. But I can't do anything with this without an example that fails. --
Apr 12 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1131 smjg iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg iname.com Status|NEW |RESOLVED Resolution| |WORKSFORME What was the point of posting, instead of a testcase, code that isn't a testcase? --
Sep 29 2007