[Issue 7355] inout incorrectly resolved if the same type has both mutable and immutable parts

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 3 17:18:54 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7355



--- Comment #19 from Steven Schveighoffer <schveiguy at yahoo.com> 2012-02-03 17:18:54 PST ---
(In reply to comment #18)
> (In reply to comment #17)
> > try at a minimum immutable, mutable, and inout.  If more than one of these
> > typechecks, the call is ambiguous.
> 
> What if one is a better match than the other? If it should fail I think we
> should use the repaired overload resolution. It has exactly the required
> semantics.

Example?  How can immutable match "better" than mutable?  I guess it would
depend on the definition of "better".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list