array.d: replace Error with assert()

This commit is contained in:
Walter Bright 2019-09-12 22:32:00 -07:00
parent b84477bcb8
commit e7aa772fb5

View file

@ -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 ~