[Issue 22279] New: std.typecons.Tuple.toString calls get on null Nullable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 4 17:41:47 UTC 2021


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

          Issue ID: 22279
           Summary: std.typecons.Tuple.toString calls get on null Nullable
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: jack at jackstouffer.com

Calling toString on a Tuple with a null Nullable results in a AssertError

Reduced case:

```
import std.typecons;
import std.stdio;

struct Result
{
    Nullable!(int, int.min) a;
}

auto func()
{
    Result res;
    return tuple(res);
}

void main()
{
    writeln(func());
}
```

--


More information about the Digitalmars-d-bugs mailing list