dmd/compiler/test/compilable/nested_template_constraints.d
2022-07-09 18:53:07 +02:00

27 lines
321 B
D

// https://issues.dlang.org/show_bug.cgi?id=21752
void foo(A)(A a)
{}
template foo()
{
void foo()()
if (true) // Comment this constraint to make it pass
{}
}
template bar()
{
template bar()
{
void bar()()
if (true) // Comment this constraint to make it pass
{}
}
}
void main()
{
foo!()();
bar!()();
}