Skip to content

Commit 897ff6e

Browse files
author
The Dlang Bot
authored
Merge pull request #7183 from WalterBright/arrayError
array.d: replace Error with assert() merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2 parents fd06bc1 + e7aa772 commit 897ff6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

std/array.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ private auto arrayAllocImpl(bool minimallyInitialized, T, I...)(I sizes) nothrow
941941
ret ~= E.init;
942942
}
943943
catch (Exception e)
944-
throw new Error(e.msg);
944+
assert(0, e.msg);
945945
}
946946
else
947947
assert(0, "No postblit nor default init on " ~ E.stringof ~

0 commit comments

Comments
 (0)