← Back to index
|
Original Bugzilla link
Bug 6865 – inout matching removes shared qualifier
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-10-30T06:57:00Z
Last change time
2011-10-31T12:11:19Z
Keywords
patch, wrong-code
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2011-10-30T06:57:19Z
shared(inout(int)) foo(shared(inout(int)) n){ return n; } void main() { shared(const(int)) n; static assert(is(typeof(foo(n)) == shared(const(int)))); // test.d(6): Error: static assert // (is(const(int) == shared(const(int)))) is false }
Comment #1
by k.hara.pg — 2011-10-30T07:52:45Z
https://github.com/D-Programming-Language/dmd/pull/481
Comment #2
by bugzilla — 2011-10-31T12:11:19Z
https://github.com/D-Programming-Language/dmd/commit/3448ffd1b407453aba647da5f0435f648cfbe04f