mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +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
29 lines
447 B
D
29 lines
447 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail15755.d(28): Error: `AliasSeq!(123)` has no effect
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=15755
|
|
|
|
struct Foo
|
|
{
|
|
@(123)
|
|
int a;
|
|
}
|
|
|
|
template Attributes(As...)
|
|
{
|
|
alias Attributes = As;
|
|
}
|
|
|
|
template getattribute(alias member, alias attrs = Attributes!(__traits(getAttributes, member)))
|
|
{
|
|
alias getattribute = attrs;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
getattribute!(__traits(getMember, Foo, "a"));
|
|
}
|