[Issue 18592] Associative array assignment with a destructor should be @safe if the destructor is @safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 15 03:16:58 UTC 2018


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
The example compiles successfully if ~this() is given the @safe attribute.
@safe for the outer function is not transitively applied - perhaps it should
be, but that isn't the way it works at the moment.

--


More information about the Digitalmars-d-bugs mailing list