[Issue 22007] New: static foreach: cannot implicitly convert expression Tuple4(0LU, 1) of type Tuple4 to int
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 8 18:27:56 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22007
Issue ID: 22007
Summary: static foreach: cannot implicitly convert expression
Tuple4(0LU, 1) of type Tuple4 to int
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
Code works with foreach, but not static foreach
immutable int[32] array = 1;
foreach (size_t a, int b; array) {}
static foreach (size_t a, int b; array) { }
--
More information about the Digitalmars-d-bugs
mailing list