gcc/testsuite/gdc.test/compilable/test23863.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=23863 |
| 2 | |
| 3 | alias AliasSeq(T...) = T; |
| 4 | |
| 5 | struct S |
| 6 | { |
| 7 | } |
| 8 | alias Empty = S.tupleof; |
| 9 | Empty x; // accepts valid |
| 10 | |
| 11 | static assert(is(typeof(x))); |
| 12 | static assert(is(typeof(Empty))); |
| 13 | static assert(is(typeof(AliasSeq!(int)))); |
| 14 | static assert(is(typeof(Empty) == AliasSeq!())); |
| 15 | static assert(is(typeof(AliasSeq!()) == AliasSeq!())); |