mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
22 lines
365 B
D
22 lines
365 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice11553.d(22): Error: recursive template expansion while looking for `A!().A()`
|
|
fail_compilation/ice11553.d(22): Error: expression `A()` of type `void` does not have a boolean value
|
|
---
|
|
*/
|
|
|
|
template A(alias T)
|
|
{
|
|
template A()
|
|
{
|
|
alias A = T!();
|
|
}
|
|
}
|
|
|
|
template B()
|
|
{
|
|
alias B = A!(.B);
|
|
}
|
|
|
|
static if (A!B) {}
|