blob: cf2648db40bf157043e301f737eb03dde92eedc0 [file]
/*
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());
}