/* TEST_OUTPUT: --- fail_compilation/fail16600.d(22): Error: `fail16600.S.__ctor` called with argument types `(string) const` matches both: fail_compilation/fail16600.d(16): `fail16600.S.this(string _param_0)` and: fail_compilation/fail16600.d(17): `fail16600.S.this(string _param_0) immutable` --- */ // https://issues.dlang.org/show_bug.cgi?id=16600 struct S { int i; this(string) { i = 1; } this(string) immutable { i = 2; } } void main() { auto a = const(S)("abc"); assert(a.i == 2); }