mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
14 lines
391 B
D
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]) {}
|
|
}
|
|
}
|