D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6855 - shared(immutable(T)) should be immutable(T)
Summary: shared(immutable(T)) should be immutable(T)
Status: RESOLVED DUPLICATE of issue 6922
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 06:07 UTC by timon.gehr
Modified: 2011-12-11 19:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description timon.gehr 2011-10-26 06:07:26 UTC
Tested with DMD 2.055

static assert(is(shared(immutable(int)) == immutable(int)));    // fail 1
static assert(is(const(shared(immutable(int))) == const(int))); // fail 2

I'd expect both static assertions to pass.

(1. Currently immutable(shared(int)) == immutable(int).
2. will work if 1. is fixed.)
Comment 1 Kenji Hara 2011-12-11 19:34:34 UTC

*** This issue has been marked as a duplicate of issue 6922 ***