mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 23:50:43 +03:00
Merged changes in TypeDArray::builtinTypeInfo() from dmdfe.
This commit is contained in:
parent
f351084089
commit
069f0a6262
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue