1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed params/varargs in function/delegate typerefs

This commit is contained in:
Brian Fiete 2022-06-05 07:42:33 -07:00
parent a730e782f5
commit 9c9ca4d259
2 changed files with 28 additions and 4 deletions

View file

@ -656,7 +656,7 @@ BfMethodDef* BfDefBuilder::CreateMethodDef(BfMethodDeclaration* methodDeclaratio
if (paramIdx == (int)methodDeclaration->mParams.size() - 1)
paramDef->mParamKind = BfParamKind_VarArgs;
else
Fail("Varargs specifier must be the last parameter", methodDef->mParams[paramIdx - 1]->mParamDeclaration);
Fail("Varargs specifier must be the last parameter", paramDecl);
}
}