[Issue 3546] Aliasing an element of a static array should be legal if the index is a compile time constant

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 14 16:57:13 UTC 2020


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

--- Comment #3 from Nick Treleaven <nick at geany.org> ---
> alias a = s.i; // OK

While this line compiles, even reading `a` triggers the same error:

> Error: need `this` for `i` of type `int`

--


More information about the Digitalmars-d-bugs mailing list