mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00

* Fix Issue 15436 - Compiler still refers to AliasSeq-s as "tuple"-s Replace "tuple type" with "type sequence". Replace "tuple" with "sequence". Pretty print `AliasSeq!(args)`, not `tuple(args)`. Leave json as "tuple" for now. Also mention std.typecons.Tuple when trying to return a sequence. Note: This does not rename any internal compiler symbols. * Update runnable tests * Update stringof tests * Update remaining tests * retrigger tests
16 lines
309 B
D
16 lines
309 B
D
// https://issues.dlang.org/show_bug.cgi?id=17143
|
|
|
|
struct Tuple(T...)
|
|
{
|
|
T values;
|
|
alias expand = values;
|
|
}
|
|
|
|
Tuple!T tuple(T...)(T args)
|
|
{
|
|
return Tuple!T(args);
|
|
}
|
|
|
|
enum foo = tuple(1, 2).expand;
|
|
static assert(typeof(foo).stringof == "(int, int)");
|
|
static assert(foo.stringof == "AliasSeq!(1, 2)");
|