https://issues.dlang.org/show_bug.cgi?id=13007
yebblies <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from yebblies <[email protected]> --- I can reproduce in a single file with this: ================ import std.datetime; import core.time; class Foo { SysTime getFooTime(SysTime time) { Bar bar = new Bar; auto time2 = time + bar.barDuration() - dur!"seconds"(120); if (fooBool) return SysTime.max; return time2; } bool fooBool() { return false; } } void main() { auto now = Clock.currTime; auto foo = new Foo(); assert(now == foo.getFooTime(now) + dur!"seconds"(120)); } class Bar { Duration barDuration() { return dur!"seconds"(0); } SysTime bazTime = SysTime.max; } ================ But with druntime and phobos imports I don't have the energy to try and reduce this further at the moment. --
