blob: 385483c048dd1a199e0f54c3f59e52c4d1f1063f [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail17518.d(21): Error: constructor `fail17518.S.this(inout(Correct) _param_0) inout` is not callable using argument types `(Wrong)`
fail_compilation/fail17518.d(21): cannot pass argument `Wrong()` of type `Wrong` to parameter `inout(Correct) _param_0`
---
*/
struct S
{
this(inout Correct) inout
{
}
}
struct Correct {}
struct Wrong {}
S bug()
{
return S(Wrong());
}