For this code:
struct S {
this(string);
this(string) immutable;
}
void main() {
auto a = const(S)("abc");
}
the error message is:
t.d(7): Error: t.S.__ctor called with argument types (string) const matches both:
t.d(2): t.S.this(string)
and:
t.d(3): t.S.this(string)
Should be:
t.d(7): Error: t.S.__ctor called with argument types (string) const matches both:
t.d(2): t.S.this(string)
and:
t.d(3): t.S.this(string) immutable
Comment #1 by github-bugzilla — 2017-04-03T19:35:57Z