Bug 4219 – hasAliasing does not care about immutable
Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-05-22T17:41:00Z
Last change time
2015-06-09T05:13:49Z
Assigned to
rsinfu
Creator
simen.kjaras
Comments
Comment #0 by simen.kjaras — 2010-05-22T17:41:32Z
class A {}
static assert( hasAliasing!( immutable A ) );
The above code compiles. According to documentation, hasAliasing should return false for immutable references.
In addition, documentation uses the word invariant.