1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice9284.d(14): Error: template ice9284.C.__ctor cannot deduce function from argument types !()(int), candidates are:
5 fail_compilation/ice9284.d(12):        ice9284.C.__ctor()(string)
6 fail_compilation/ice9284.d(20): Error: template instance ice9284.C.__ctor!() error instantiating
7 ---
8 */
9 
10 class C
11 {
this()12     this()(string)
13     {
14         this(10);
15         // delegating to a constructor which not exists.
16     }
17 }
main()18 void main()
19 {
20     new C("hello");
21 }
22