[Issue 8304] writeln of empty Nullables too

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 31 13:37:05 PDT 2014


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

--- Comment #5 from bearophile_hugs at eml.cc ---
This has improved the situation:
https://github.com/D-Programming-Language/phobos/pull/2587


But the example in comment #1 still fails:


void main() {
    import std.stdio: writeln;
    import std.typecons: Nullable;
    const(Nullable!int) c;
    writeln(c);
}


core.exception.AssertError at C:\dmd2\src\phobos\std\typecons.d(1529): Called
`get' on null Nullable!int.

--


More information about the Digitalmars-d-bugs mailing list