summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail16206a.d
blob: 3c1cc56782ea72520959a0a1f2917d936ef50b88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/*
TEST_OUTPUT:
---
fail_compilation/fail16206a.d(12): 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"));