[Issue 20417] __traits(compiles) returns false result if expression is not wrapped inside a lambda while typeof works correctly
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Nov 28 14:26:09 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20417
RazvanN <razvan.nitu1305 at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
It seems that for some reason, when S has a destructor it tries to interpret
the calls to a and i and it cannot do that because the functions have no bodies
(compiles trait failes). However, I have no idea why it is trying to interpret
those calls.
--
    
    
More information about the Digitalmars-d-bugs
mailing list