Thread overview
[Issue 18592] Associative array assignment with a destructor should be @safe if the destructor is @safe
Mar 11, 2018
Seb
Mar 13, 2018
Walter Bright
Mar 13, 2018
Carsten Blüggel
Mar 15, 2018
Walter Bright
March 11, 2018
https://issues.dlang.org/show_bug.cgi?id=18592

Seb <greensunny12@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe

--
March 13, 2018
https://issues.dlang.org/show_bug.cgi?id=18592

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=18000

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
The solution is likely the same as for https://github.com/dlang/dmd/pull/8011

--
March 13, 2018
https://issues.dlang.org/show_bug.cgi?id=18592

Carsten Blüggel <chilli@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chilli@posteo.net

--
March 15, 2018
https://issues.dlang.org/show_bug.cgi?id=18592

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #2 from Walter Bright <bugzilla@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.

--