diff --git a/gen/typinf.cpp b/gen/typinf.cpp index 07b5917d..60c6e895 100644 --- a/gen/typinf.cpp +++ b/gen/typinf.cpp @@ -258,7 +258,8 @@ int TypeDArray::builtinTypeInfo() { 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)); } int TypeClass::builtinTypeInfo()