1 // https://issues.dlang.org/show_bug.cgi?id=21743
5 int foo(int a) { return a; }
6 string foo()(string b) { return b; }
9 alias ov = __traits(getOverloads, A.init, "foo", true);
11 // member function works
12 static assert(ov[0](1) == 1);
14 // member template used to fail with the gagged error:
15 // 'need this for foo of type pure nothrow @nogc @safe string(string b)'
16 static assert(ov[1]("a") == "a");