http://d.puremagic.com/issues/show_bug.cgi?id=10765
Summary: Cannot Use Index in Foreach When Iteratee is a Tuple
Product: D
Version: D2
Platform: x86_64
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2013-08-05 17:34:16 PDT ---
import std.range;
void main()
{
//Error: cannot infer argument types
foreach(i, left, right; zip("test", "test"))
{
assert(left == right);
}
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------