Skip to content

Commit

Permalink
Use builtin typeinfo for const(char)[] as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
H. S. Teoh committed Aug 15, 2013
1 parent 59c0ebe commit bb2e3a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/typinf.c
Expand Up @@ -790,7 +790,8 @@ int TypeDArray::builtinTypeInfo()
#if DMDV2
return !mod && (next->isTypeBasic() != NULL && !next->mod ||
// strings are so common, make them builtin
next->ty == Tchar && next->mod == MODimmutable);
next->ty == Tchar && next->mod == MODimmutable ||
next->ty == Tchar && next->mod == MODconst);
#else
return next->isTypeBasic() != NULL;
#endif
Expand Down

0 comments on commit bb2e3a4

Please sign in to comment.