[Issue 10765] New: Cannot Use Index in Foreach When Iteratee is a Tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 5 17:34:17 PDT 2013


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: nobody at puremagic.com
        ReportedBy: monkeyworks12 at hotmail.com


--- Comment #0 from monkeyworks12 at hotmail.com 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: -------


More information about the Digitalmars-d-bugs mailing list