D issues are now
tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Summary: |
Iterating tuple with index which explicitly typed as size_t causes an error |
Product: |
D
|
Reporter: |
Kenji Hara <k.hara.pg> |
Component: |
dmd | Assignee: |
No Owner <nobody> |
Status: |
RESOLVED
FIXED
|
Severity: |
normal
|
CC: |
bugzilla
|
Priority: |
P2
|
Keywords: |
patch, rejects-valid |
Version: |
D2 |
Hardware: |
All |
OS: |
All |
void f(A...)(A args)
{
foreach (i, e; args){} // OK
foreach (uint i, e; args){} // OK
foreach (size_t i, e; args){} // NG
}
void main()
{
f(1, 3.14);
}