blob: 8fd2b51b60aa8eb3e5b81e8d1c16d246ed26f4b1 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail15755.d(28): Error: `tuple(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"));
}