Today's weird D edge case
b2.temp at gmx.com
Sun Jul 14 22:59:27 UTC 2019
On Sunday, 14 July 2019 at 19:58:20 UTC, Les De Ridder wrote:
> On Sunday, 14 July 2019 at 00:23:49 UTC, Ethan wrote:
>> On Sunday, 14 July 2019 at 00:22:10 UTC, Ethan wrote:
>>> Using an is statement inside a template constraint doesn't
>>> propagate the is results in to a function. You have to static
>>> if with the same is statement to make it work.
>> And now with the full example. Derp.
> I realise this doesn't work for all template constraints, but
> for some
> cases there's a workaround using normal type specialisation.
> ... and as I was about to show it, I hit an ICE (goes away when
> uncomment the second line in the !compiles):
took note of the ICE :
More information about the Digitalmars-d