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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Jack Applegame <[email protected]> 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: -------

Reply via email to