ae
ae copied to clipboard
fix shadowing alias this declaration for the new alias this implement…
…ation
This is needed for dmd#8378.
The new alias this implemetation fixes 5973 issue and your fix becomes erroneous.
__NewAliasThis is a temporary version which is needed to transition from the old implementation to the new.
If it possible, create a new tag, please.
I am OK with a workaround if Walter/Andrei are OK with the DMD PR breaking code. However, I don't think __NewAliasThis is a good idea. It would be better to detect if the compiler supports this functionality or requires the 5973 workaround by detecting it with __traits(complies,...) etc.:
https://github.com/CyberShadow/ae/blob/master/utils/meta/caps.d