[Issue 9090] auto ref doesn't work with arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 7 11:42:24 PST 2012


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



--- Comment #3 from dawg at dawgfoto.de 2012-12-07 11:42:23 PST ---
(In reply to comment #2)
> This also happens with ref and plain types.
>
Does an implicit const cast means to become an rvalue.
But still auto ref and implicit const cast doesn't work for integral types too.

void test1()(auto ref const char val) {}
void main() {
    immutable char a;
    test1(a);
}

-- 
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