blob: d28a8c33731afae3ccf970802f7cb5be605df276 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/*
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"));
|