mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
23 lines
468 B
D
23 lines
468 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail236.d(14): Error: undefined identifier `x`
|
|
fail_compilation/fail236.d(22): Error: template `Templ2` is not callable using argument types `!()(int)`
|
|
fail_compilation/fail236.d(12): Candidate is: `Templ2(alias a)(x)`
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=870
|
|
// contradictory error messages for templates
|
|
template Templ2(alias a)
|
|
{
|
|
void Templ2(x)
|
|
{
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
int i;
|
|
Templ2(i);
|
|
}
|