unexpected noreturn behavior

Dennis dkorpel at gmail.com
Thu Apr 21 12:54:12 UTC 2022


On Thursday, 21 April 2022 at 12:41:08 UTC, WebFreak001 wrote:
> which I think is a little bug-prone, but at least that would 
> solve my issues.

What issue do you have with it returning `true`? Note that this 
compiles:
```D
@safe:
import std.sumtype;
void main()
{
     SumType!(int, string) s = assert(0);
}

```


More information about the Digitalmars-d-learn mailing list