mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
27 lines
321 B
D
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!()();
|
|
}
|