1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

SetResultStringType type context fix

This commit is contained in:
Brian Fiete 2022-04-28 11:28:33 -07:00
parent 39cf43102e
commit 5f0fd070ad

View file

@ -3796,6 +3796,9 @@ void BfAutoComplete::FixitAddConstructor(BfTypeInstance *typeInstance)
void BfAutoComplete::SetResultStringType(BfType * type)
{
SetAndRestoreValue<BfTypeInstance*> prevTypeInst(mModule->mCurTypeInstance, type->ToTypeInstance());
SetAndRestoreValue<BfMethodInstance*> prevMethodInst(mModule->mCurMethodInstance, NULL);
mResultString = ":";
mResultString += mModule->TypeToString(type);
if (type->IsObject())