mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
array.d: replace Error with assert()
This commit is contained in:
parent
b84477bcb8
commit
e7aa772fb5
1 changed files with 1 additions and 1 deletions
|
@ -941,7 +941,7 @@ private auto arrayAllocImpl(bool minimallyInitialized, T, I...)(I sizes) nothrow
|
|||
ret ~= E.init;
|
||||
}
|
||||
catch (Exception e)
|
||||
throw new Error(e.msg);
|
||||
assert(0, e.msg);
|
||||
}
|
||||
else
|
||||
assert(0, "No postblit nor default init on " ~ E.stringof ~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue