Bug 10947 – const out parameter is not properly rejected
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-01T18:57:00Z
Last change time
2013-10-01T04:20:59Z
Keywords
accepts-invalid, pull
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2013-09-01T18:57:31Z
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