Bug 11730 – associative array with Nullable!SysTime values: Called `get' on null Nullable!SysTime.
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-12T06:31:00Z
Last change time
2013-12-14T22:58:23Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
kroeplin.d
Comments
Comment #0 by kroeplin.d — 2013-12-12T06:31:34Z
The following program throws on D 2.064.2:
import std.datetime;
import std.typecons;
void main()
{
Nullable!SysTime[string] map;
map["foo"] = Nullable!SysTime();
}
[email protected]/compilers/dmd-2.064.2/bin/../src/phobos/std/typecons.d(1233): Called `get' on null Nullable!SysTime.
It works on D 2.063.2.