[Issue 23035] -preview=rvaluerefparam causes @system function to be @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 18 15:41:59 UTC 2022


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

Stanislav Blinov <stanislav.blinov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stanislav.blinov at gmail.com

--- Comment #1 from Stanislav Blinov <stanislav.blinov at gmail.com> ---
That assert fails for me regardless of -preview setting. Probably because
opPostMove decayed from the source and isn't actually being used. Which would
make `move(s)` @safe @nogc nothrow pure.

(IMHO, it should just stay that way. Introduction of proper move ctors would be
much more preferable to maintaining that ad-hoc crutch).

--


More information about the Digitalmars-d-bugs mailing list