mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed type population with Span params
This commit is contained in:
parent
0df06b9870
commit
0c955e5c66
1 changed files with 5 additions and 1 deletions
|
@ -7481,6 +7481,8 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
|||
}
|
||||
else if (wantType->IsInstanceOf(mModule->mCompiler->mSpanTypeDef))
|
||||
{
|
||||
mModule->PopulateType(wantType);
|
||||
mModule->mBfIRBuilder->PopulateType(wantType);
|
||||
auto genericTypeInst = wantType->ToGenericTypeInstance();
|
||||
expandedParamsElementType = genericTypeInst->mGenericTypeInfo->mTypeGenericArguments[0];
|
||||
|
||||
|
@ -7494,6 +7496,8 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
|||
}
|
||||
else if (wantType->IsSizedArray())
|
||||
{
|
||||
mModule->PopulateType(wantType);
|
||||
mModule->mBfIRBuilder->PopulateType(wantType);
|
||||
BfSizedArrayType* sizedArrayType = (BfSizedArrayType*)wantType;
|
||||
expandedParamsElementType = wantType->GetUnderlyingType();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue