Bug 8746 – rehash AA property doesn't work with constant Tuple

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-02T03:05:00Z
Last change time
2013-09-17T15:11:02Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2012-10-02T03:05:24Z
import std.typecons; void main() { int[Tuple!(const int)] hash; hash.rehash; } D:\DMD\dmd2\windows\bin\..\..\src\druntime\import\object.di(521): Error: can only initialize const member key inside constructor This was found while trying to implement Issue 8743.
Comment #1 by hsteoh — 2013-08-17T13:29:01Z
This no longer seems to happen on git HEAD. Has it been fixed?
Comment #2 by andrej.mitrovich — 2013-09-17T15:11:02Z
Works in 2.063.2.