mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
Typifiy an always throwing method as noreturn
(#7834)
This commit is contained in:
parent
efced87ae8
commit
5e55db84c5
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ T enforce(T)(T value, lazy Throwable ex)
|
|||
assertThrown!ConvException(convEnforce(false, "blah"));
|
||||
}
|
||||
|
||||
private void bailOut(E : Throwable = Exception)(string file, size_t line, scope const(char)[] msg)
|
||||
private noreturn bailOut(E : Throwable = Exception)(string file, size_t line, scope const(char)[] msg)
|
||||
{
|
||||
static if (is(typeof(new E(string.init, string.init, size_t.init))))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue