blob: a1b3906dc6caafb6546f5a920c7ebf57d060f809 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail95.d(19): Error: none of the overloads of template `fail95.A` are callable using argument types `!()(int)`
fail_compilation/fail95.d(11): Candidate is: `A(alias T)(T)`
---
*/
// https://issues.dlang.org/show_bug.cgi?id=142
// Assertion failure: '0' on line 610 in file 'template.c'
template A(alias T)
{
void A(T) { T = 2; }
}
void main()
{
int i;
A(i);
assert(i == 2);
}