mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed issue with nested valueless lambdas
This commit is contained in:
parent
eaeb5ab6f8
commit
a3211809c6
2 changed files with 10 additions and 0 deletions
|
@ -10931,6 +10931,12 @@ BfLambdaInstance* BfExprEvaluator::GetLambdaInstance(BfLambdaBindExpression* lam
|
|||
|
||||
if (invokeMethodInstance != NULL)
|
||||
{
|
||||
if (mModule->mBfIRBuilder->mIgnoreWrites)
|
||||
{
|
||||
mResult = mModule->GetDefaultTypedValue(mExpectingType, false, BfDefaultValueKind_Addr);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
BfLocalMethod* localMethod = new BfLocalMethod();
|
||||
localMethod->mMethodName = "anon";
|
||||
localMethod->mSystem = mModule->mSystem;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue