mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fix for default values referencing composite global variables
This commit is contained in:
parent
7473fdeaa6
commit
852748ae1f
1 changed files with 1 additions and 0 deletions
|
@ -6084,6 +6084,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
|||
argValue = mModule->GetTypedValueFromConstant(foreignConst, methodInstance->GetOwner()->mConstHolder, foreignDefaultVal.mType);
|
||||
if (!argValue)
|
||||
mModule->Fail("Default parameter value failed", targetSrc);
|
||||
mModule->mBfIRBuilder->PopulateType(foreignDefaultVal.mType);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue