mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Self resolution fix
This commit is contained in:
parent
130c5fe8c8
commit
15e1986a1c
1 changed files with 3 additions and 0 deletions
|
@ -6790,7 +6790,10 @@ 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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue