[Issue 24046] static destructors should be allowed in function bodies
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Jul 13 17:36:28 UTC 2023
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24046
Max Samukha <maxsamukha at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxsamukha at gmail.com
--- Comment #1 from Max Samukha <maxsamukha at gmail.com> ---
While I agree that function-local static constructors/destructors should just
work, you can work around this bug by wrapping the destructor in a struct.
--
    
    
More information about the Digitalmars-d-bugs
mailing list