Merged changes in TypeDArray::builtinTypeInfo() from dmdfe.

This commit is contained in:
Alexey Prokhin 2011-04-30 15:30:57 +04:00
parent f351084089
commit 069f0a6262

View file

@ -257,7 +257,9 @@ int TypeBasic::builtinTypeInfo()
int TypeDArray::builtinTypeInfo() int TypeDArray::builtinTypeInfo()
{ {
#if DMDV2 #if DMDV2
return !mod && next->isTypeBasic() != NULL && !next->mod; return !mod && (next->isTypeBasic() != NULL && !next->mod ||
// strings are so common, make them builtin
next->ty == Tchar && next->mod == MODimmutable);
#else #else
return next->isTypeBasic() != NULL; return next->isTypeBasic() != NULL;
#endif #endif