dmd/compiler/test/compilable/test22006.d
2022-07-09 18:53:07 +02:00

14 lines
391 B
D

// https://issues.dlang.org/show_bug.cgi?id=22006
void test22006()
{
alias AliasSeq(TList...) = TList;
{
alias aseq = AliasSeq!(0, 1, 2, 3);
static foreach (ubyte i; 0 .. aseq.length) {}
static foreach (ubyte i, x; aseq) {}
}
{
static foreach (ubyte i; 0 .. [0, 1, 2, 3].length) {}
static foreach (ubyte i, x; [0, 1, 2, 3]) {}
}
}