http://d.puremagic.com/issues/show_bug.cgi?id=6273
Summary: Tuple [] operator in pure function
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2011-07-08 17:43:18 PDT ---
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)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------