http://d.puremagic.com/issues/show_bug.cgi?id=9654
Summary: Template function cannot take string by ref T[len]
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kenji Hara <[email protected]> 2013-03-05 20:46:45 PST ---
This code should work.
void foo(ref const char[8] str) {}
void bar(T)(ref const T[8] str) {}
void main()
{
foo("testinfo"); // OK
bar("testinfo"); // should be OK, but fails
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------