blob: 7360a3df62f20158b6b78b438030778e77cb4cfe [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/diag13082.d(24): Error: constructor `diag13082.C.this(int a)` is not callable using argument types `(string)`
fail_compilation/diag13082.d(24): cannot pass argument `b` of type `string` to parameter `int a`
fail_compilation/diag13082.d(25): Error: constructor `diag13082.S.this(int a)` is not callable using argument types `(string)`
fail_compilation/diag13082.d(25): cannot pass argument `b` of type `string` to parameter `int a`
---
*/
class C
{
this(int a) {}
}
struct S
{
this(int a) {}
}
void main()
{
string b;
auto c = new C(b);
auto s = new S(b);
}