dmd/compiler/test/compilable/b23620.d
Basile Burg 1fe9ffb672 fix issue 23620 - 'alias this' is not respected in static array length position
does the cast to size_t before calling toInteger(), which emitted the error
2023-01-12 14:30:31 +01:00

10 lines
164 B
D

// https://issues.dlang.org/show_bug.cgi?id=23620
struct Index
{
uint value;
alias value this;
}
enum i = Index();
int[i] a;
static assert(a.length == 0);