[Issue 20860] OpDispatch does not work for structs with constructor and destructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 26 03:37:13 UTC 2020


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #3 from Basile-z <b2.temp at gmx.com> ---
This could definitively be done for next point release.

The problem seems simple to fix. Apparently it's related to the trailing tuple
template parameter `Params...`, the compiler does not accept that its length is
equal to 0...I'm 90% sure it's a problem of lowering, meaning that 

   `A(3).test()`

is not rewritten 

  `A(3).opDispatch!("test")()`

properly.

--


More information about the Digitalmars-d-bugs mailing list