For String Refs, inherit the type of the reffed string object.

This commit is contained in:
Michael Hansen
2022-12-01 11:42:31 -08:00
parent 93495c3bfb
commit e623e9ac56
5 changed files with 4 additions and 7 deletions

View File

@@ -140,7 +140,6 @@ void output_object(PycRef<PycObject> obj, PycModule* mod, int indent)
OutputString(obj.cast<PycString>(), mod->strIsUnicode() ? 0 : 'u');
fputs("\n", pyc_output);
break;
case PycObject::TYPE_STRINGREF:
case PycObject::TYPE_INTERNED:
case PycObject::TYPE_ASCII:
case PycObject::TYPE_ASCII_INTERNED: