1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Self resolution fix

This commit is contained in:
Brian Fiete 2022-01-16 08:49:08 -05:00
parent 130c5fe8c8
commit 15e1986a1c

View file

@ -6790,8 +6790,11 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
{
// Resolve `Self` types
if (wantType->IsUnspecializedTypeVariation())
{
SetAndRestoreValue<BfTypeInstance*> prevCurTypeInst(mModule->mCurTypeInstance, methodInstance->GetOwner());
wantType = mModule->ResolveGenericType(wantType, NULL, NULL);
}
}
if (IsVar(wantType))
{