mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
24 lines
549 B
D
24 lines
549 B
D
/*
|
|
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))
|
|
{
|
|
}
|
|
}
|