mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 06:44:10 +02:00
Fix for call with implicit captured 'var' type
This commit is contained in:
parent
f273407f97
commit
b9f84d328e
1 changed files with 9 additions and 3 deletions
|
@ -5503,6 +5503,11 @@ void BfExprEvaluator::PushArg(BfTypedValue argVal, SizedArrayImpl<BfIRValue>& ir
|
||||||
{
|
{
|
||||||
MakeBaseConcrete(argVal);
|
MakeBaseConcrete(argVal);
|
||||||
|
|
||||||
|
if (argVal.mType->IsVar())
|
||||||
|
{
|
||||||
|
argVal = mModule->GetDefaultTypedValue(mModule->mContext->mBfObjectType);
|
||||||
|
}
|
||||||
|
|
||||||
if (argVal.mType->IsValuelessType())
|
if (argVal.mType->IsValuelessType())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -7896,6 +7901,7 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
|
||||||
return BfTypedValue();
|
return BfTypedValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ((prevBindResult.mPrevVal != NULL) && (methodMatcher.mMethodCheckCount > 1))
|
if ((prevBindResult.mPrevVal != NULL) && (methodMatcher.mMethodCheckCount > 1))
|
||||||
prevBindResult.mPrevVal->mCheckedMultipleMethods = true;
|
prevBindResult.mPrevVal->mCheckedMultipleMethods = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue