[Issue 10574] "auto ref" fails to match when IFTI succeeds (strip to level const)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 8 18:05:37 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10574
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2013-07-08 18:05:35 PDT ---
(In reply to comment #2)
> Just an educated guess. The problem seems to be that the value is a L-value so
> the signature becomes (ref T[]) which cannot match immutable(int[]).
That's exactly the current compiler's behavior. "auto ref" always behave as
"ref" parameter against lvalue argument `i`, then T[] cannot deduce type T from
immutable(int[]).
--
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