[Issue 18840] static foreach over an object's tupleof gives wrong information for const variables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 5 09:50:28 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=18840

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
I cannot reproduce this. With latest master I get:

foreach pass:
foo has parent SomeStruct
bar has parent SomeStruct
anotherConst has parent SomeStruct
notAConst has parent SomeStruct
static foreach pass:
foo has parent SomeStruct
bar has parent SomeStruct
anotherConst has parent SomeStruct
notAConst has parent SomeStruct

which is the correct result.

--


More information about the Digitalmars-d-bugs mailing list