mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-19 21:55:21 +02:00
Different fixes: phobos compiles now
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user