1 /* 2 TEST_OUTPUT: 3 --- 4 fail_compilation/diag13082.d(22): Error: constructor diag13082.C.this (int a) is not callable using argument types (string) 5 fail_compilation/diag13082.d(23): Error: constructor diag13082.S.this (int a) is not callable using argument types (string) 6 --- 7 */ 8 9 class C 10 { 11 this(int a) {} 12 } 13 14 struct S 15 { 16 this(int a) {} 17 } 18 19 void main() 20 { 21 string b; 22 auto c = new C(b); 23 auto s = new S(b); 24 } 25