blob: 0c95bd8725736bc6639b6eb649066e042110560c [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice9284.d(14): Error: template ice9284.C.__ctor cannot deduce function from argument types !()(int), candidates are:
fail_compilation/ice9284.d(12): ice9284.C.__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");
}