Different fixes: phobos compiles now

This commit is contained in:
Alexey Prokhin
2010-10-28 14:53:01 +04:00
parent b1e5993873
commit e4c3179d43
11 changed files with 116 additions and 39 deletions

View File

@@ -2263,10 +2263,16 @@ DValue* CatAssignExp::toElem(IRState* p)
}
else if (elemtype->ty == Tchar) {
if (e2type->ty == Tdchar)
DtoAppendDChar(l, e2);
DtoAppendDCharToString(l, e2);
else
assert(0 && "cannot append the element to a string");
}
else if (elemtype->ty == Twchar) {
if (e2type->ty == Tdchar)
DtoAppendDCharToUnicodeString(l, e2);
else
assert(0 && "cannot append the element to an unicode string");
}
else {
assert(0 && "only one element at a time right now");
}