[Issue 23964] [REG2.102] inccorect error opAssign cannot be used ... @disable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 29 13:18:12 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=23964

--- Comment #3 from johanengelen at weka.io ---
> A workaround is to make `foo` @safe. That will make the code to compile.

Thanks, this indeed works and helps me out again now. A big problem with this
bug is that it is _very_ hard to find the reason for the @disabling of opAssign
in a normal codebase. So it is highly non-trivial to find out that setting
@safe on a function somewhere is going to fix the compile error...

--


More information about the Digitalmars-d-bugs mailing list