[Issue 22680] @safe hole with destructors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 31 02:30:04 UTC 2022


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #10 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Stanislav Blinov from comment #6)
> S test()
> {
>     S s;
>     return s; // Error: scope variable `s` may not be returned
> }

This has been fixed.

--


More information about the Digitalmars-d-bugs mailing list