[Issue 20876] DMD gives out not so helpful compile error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 29 00:20:41 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20876
--- Comment #3 from moonlightsentinel at 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) { }
else
this(Bar) { }
}
void main()
{
Foo foo;
Array arr;
arr[] = foo;
}
--
More information about the Digitalmars-d-bugs
mailing list