[Issue 16542] makeArray not usable with const initializer
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jan 10 07:32:48 PST 2017
https://issues.dlang.org/show_bug.cgi?id=16542
b2.temp at gmx.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |b2.temp at gmx.com
--- Comment #1 from b2.temp at gmx.com ---
Can you add a test case please ? I suspect this report to be either either bad
formulated or invalid because with DMD 2.073-b1 the following test passes:
unittest
{
const int[] v;
void test(T)(in T t)
{
auto a = theAllocator.makeArray(100, t);
}
test(v);
}
--
More information about the Digitalmars-d-bugs
mailing list