Comment #1 by bus_dbugzilla — 2011-08-16T23:41:16Z
I think this may be another manifestation of the same bug:
dstring foo()
{
auto result = new dchar[](1);
result[0..1] = "a"d;
return cast(dstring)result;
}
static assert(foo() == "a"d);
Result:
assert interpret.c(2831) sz == newstr->sz