dmd/compiler/test/fail_compilation/fail16206a.d
2022-07-09 18:53:07 +02:00

14 lines
321 B
D

/*
TEST_OUTPUT:
---
fail_compilation/fail16206a.d(14): Error: `bool` expected as third argument of `__traits(getOverloads)`, not `"Not a bool"` of type `string`
---
*/
struct S
{
static int foo()() { return 0; }
}
alias AliasSeq(T...) = T;
alias allFoos = AliasSeq!(__traits(getOverloads, S, "foo", "Not a bool"));