1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed invalid cast for params

This commit is contained in:
Brian Fiete 2024-11-20 09:30:05 -05:00
parent 75a5a3695b
commit 28783a6b5a

View file

@ -305,7 +305,7 @@ bool BfConstResolver::PrepareMethodArguments(BfAstNode* targetSrc, BfMethodMatch
isDirectPass = true;
}
if (!isDirectPass)
if ((!isDirectPass) && (wantType->IsArray()))
{
BfArrayType* arrayType = (BfArrayType*)wantType;
if (arrayType->IsIncomplete())