mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
Merged changes in TypeDArray::builtinTypeInfo() from dmdfe.
This commit is contained in:
@@ -257,7 +257,9 @@ int TypeBasic::builtinTypeInfo()
|
||||
int TypeDArray::builtinTypeInfo()
|
||||
{
|
||||
#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
|
||||
return next->isTypeBasic() != NULL;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user