blob: a6d84aef241919f452dd2de040536f4e27ffb78c [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice9284.d(14): Error: template `ice9284.C.__ctor` cannot deduce function from argument types `!()(int)`
fail_compilation/ice9284.d(12): Candidate is: `__ctor()(string)`
fail_compilation/ice9284.d(20): Error: template instance `ice9284.C.__ctor!()` error instantiating
---
*/
class C
{
this()(string)
{
this(10);
// delegating to a constructor which not exists.
}
}
void main()
{
new C("hello");
}