[Issue 23620] New: 'alias this' is not respected in static array length position
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 11 13:48:49 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23620
Issue ID: 23620
Summary: 'alias this' is not respected in static array length
position
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: maxsamukha at gmail.com
struct Index
{
uint value;
alias value this;
}
enum i = Index();
int[i] a;
void main()
{
}
Error: integer constant expression expected instead of `Index(0u)`
--
More information about the Digitalmars-d-bugs
mailing list