Fix unrelated DAutoTest diff changes

This commit is contained in:
Sebastian Wilzbach 2018-03-21 19:11:55 +01:00
parent e5d92c11bf
commit 73b3b4ce12

View file

@ -424,7 +424,8 @@ void assertThrown(T : Throwable = Exception, E)
from `Dg`'s safety and purity.
+/
template enforce(E : Throwable = Exception)
if (is(typeof(new E("", __FILE__, __LINE__)) : Throwable) || is(typeof(new E(__FILE__, __LINE__)) : Throwable))
if (is(typeof(new E("", string.init, size_t.init)) : Throwable) ||
is(typeof(new E(string.init, size_t.init)) : Throwable))
{
///
T enforce(T)(T value, lazy const(char)[] msg = null,