diff --git a/src/core/time.d b/src/core/time.d index 0b3ed028f7..7b4761c34c 100644 --- a/src/core/time.d +++ b/src/core/time.d @@ -523,7 +523,11 @@ public: foreach(U; _TypeTuple!(Duration, const Duration, immutable Duration)) { T t = 42; - U u = t; + // workaround https://issues.dlang.org/show_bug.cgi?id=18296 + version (D_Coverage) + U u = T(t._hnsecs); + else + U u = t; assert(t == u); assert(copy(t) == u); assert(t == copy(u));