https://issues.dlang.org/show_bug.cgi?id=20876
moonlightsenti...@disroot.org changed:
What|Removed |Added
CC||moonlightsentinel@disroot.o
https://issues.dlang.org/show_bug.cgi?id=20876
kinke changed:
What|Removed |Added
CC||ki...@gmx.net
--- Comment #2 from kinke ---
(In rep
https://issues.dlang.org/show_bug.cgi?id=20876
--- Comment #3 from moonlightsenti...@disroot.org ---
Reduced test case:
struct Array
{
void opSliceAssign(Foo) {}
void opSliceAssign(Foo, size_t, size_t) {}
}
struct Foo {
Bar _bar;
}
struct Bar {
version (Bug)
this(ref Bar) { }
https://issues.dlang.org/show_bug.cgi?id=20876
RazvanN changed:
What|Removed |Added
CC||razvan.nitu1...@gmail.com
--- Comment #4 from Razv
https://issues.dlang.org/show_bug.cgi?id=20876
--- Comment #5 from moonlightsenti...@disroot.org ---
(In reply to RazvanN from comment #4)
> The fix in this situation would be to annotate the copy constructor of Bar
> with `inout`: this(ref inout(Bar)) inout . That will make the code to
> compile.
https://issues.dlang.org/show_bug.cgi?id=20876
--- Comment #6 from kinke ---
(In reply to RazvanN from comment #4)
> So, to conclude, by the current language rules the error is correct.
>
> The fix in this situation would be to annotate the copy constructor of Bar
> with `inout`: this(ref inout(
https://issues.dlang.org/show_bug.cgi?id=20876
--- Comment #7 from Puneet Goel ---
*** Issue 20927 has been marked as a duplicate of this issue. ***
--
https://issues.dlang.org/show_bug.cgi?id=20876
RazvanN changed:
What|Removed |Added
CC||alphaglosi...@gmail.com
--- Comment #8 from Razvan