mirror of
https://github.com/dlang/phobos.git
synced 2025-05-12 07:08:48 +03:00
Convert to new alias syntax
This commit is contained in:
parent
66b3b88418
commit
b391b2ec9f
48 changed files with 1137 additions and 1248 deletions
|
@ -452,7 +452,7 @@ unittest
|
|||
|
||||
errnoEnforce(s);
|
||||
|
||||
alias Exception E1;
|
||||
alias E1 = Exception;
|
||||
static class E2 : Exception
|
||||
{
|
||||
this(string fn, size_t ln) { super("", fn, ln); }
|
||||
|
@ -565,7 +565,7 @@ unittest
|
|||
|
||||
unittest
|
||||
{
|
||||
alias enforceEx!Exception enf;
|
||||
alias enf = enforceEx!Exception;
|
||||
assertNotThrown(enf(true));
|
||||
assertThrown(enf(false, "blah"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue