blob: d466a3000b332d7812b8e070b2d0126063f7dd67 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice14844.d(21): Error: in expression `__traits(allMembers, opDispatch)` template `opDispatch(string name)` has no members
fail_compilation/ice14844.d(21): `opDispatch(string name)` must evaluate to either a module, a struct, an union, a class, an interface or a template instantiation
---
*/
struct Typedef
{
template opDispatch(string name)
{
static if (true)
{
}
}
}
void runUnitTestsImpl()
{
foreach (x; __traits(allMembers, Typedef.opDispatch))
{
}
}