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:
parent
a730e782f5
commit
9c9ca4d259
2 changed files with 28 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue