mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Merge pull request #6184 from wilzbach/enforce-docs
Expose the enforce overload on the docs merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
This commit is contained in:
commit
d17a195abc
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ void assertThrown(T : Throwable = Exception, E)
|
|||
template enforce(E : Throwable = Exception)
|
||||
if (is(typeof(new E("", __FILE__, __LINE__)) : Throwable) || is(typeof(new E(__FILE__, __LINE__)) : Throwable))
|
||||
{
|
||||
|
||||
///
|
||||
T enforce(T)(T value, lazy const(char)[] msg = null,
|
||||
string file = __FILE__, size_t line = __LINE__)
|
||||
if (is(typeof({ if (!value) {} })))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue