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

Fixed a var-return case with generics methods specialized with var

This commit is contained in:
Brian Fiete 2021-11-01 08:26:45 -07:00
parent 9030d86562
commit e887b2fb59
2 changed files with 6 additions and 2 deletions

View file

@ -8903,6 +8903,8 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
if (!moduleMethodInstance)
{
FinishDeferredEvals(argValues);
if (mModule->IsInUnspecializedGeneric())
return mModule->GetDefaultTypedValue(mModule->GetPrimitiveType(BfTypeCode_Var));
return BfTypedValue();
}