mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed default parameters requiring conversion operators
This commit is contained in:
parent
5a63fec168
commit
7458a90b5b
7 changed files with 98 additions and 61 deletions
|
@ -5389,6 +5389,8 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
|||
if (!argValue)
|
||||
{
|
||||
argValue = mModule->GetTypedValueFromConstant(foreignConst, methodInstance->GetOwner()->mConstHolder, wantType);
|
||||
if (!argValue)
|
||||
mModule->Fail("Default parameter value failed", targetSrc);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue