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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 27 23:18:43 PST 2012


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

           Summary: auto ref doesn't work with arrays
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: japplegame at gmail.com


--- Comment #0 from Jack Applegame <japplegame at gmail.com> 2012-11-27 23:18:41 PST ---
void test1(T)(auto ref const T[] val) {}
void main() {
  string a;
  test1(a);
}

Output:
Error: cast(const(char[]))a is not an lvalue

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