← Back to index
|
Original Bugzilla link
Bug 6273 – Tuple [] operator in pure function
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-07-08T17:43:00Z
Last change time
2012-04-24T17:53:07Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2011-07-08T17:43:18Z
With DMD 2.054beta this program: import std.typecons; void main() pure { int x = tuple(0)[0]; } Gives: temp.d(3): Error: no [] operator overload for type Tuple!(int)
Comment #1
by lovelydear — 2012-04-24T13:34:13Z
compiles fine with 2.059 Win32