http://d.puremagic.com/issues/show_bug.cgi?id=10947
Summary: const out parameter is not properly rejected
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kenji Hara <[email protected]> 2013-09-01 18:57:31 PDT ---
Reduced test case:
struct S {}
void foo(const out S) {} // correctly rejected: "Error: out cannot be const"
alias SC = const S;
void bar(out SC) {} // NG, no error occurs
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------