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