gcc/testsuite/gdc.test/compilable/test22006.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=22006 |
| 2 | void test22006() |
| 3 | { |
| 4 | alias AliasSeq(TList...) = TList; |
| 5 | { |
| 6 | alias aseq = AliasSeq!(0, 1, 2, 3); |
| 7 | static foreach (ubyte i; 0 .. aseq.length) {} |
| 8 | static foreach (ubyte i, x; aseq) {} |
| 9 | } |
| 10 | { |
| 11 | static foreach (ubyte i; 0 .. [0, 1, 2, 3].length) {} |
| 12 | static foreach (ubyte i, x; [0, 1, 2, 3]) {} |
| 13 | } |
| 14 | } |