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

Fixit for expanding auto constructor

This commit is contained in:
Brian Fiete 2022-08-01 10:47:17 -04:00
parent a23406d9dd
commit b12ceeb625
9 changed files with 124 additions and 1 deletions

View file

@ -8960,6 +8960,13 @@ BfAstNode* BfReducer::CreateTopLevelObject(BfTokenNode* tokenNode, BfAttributeDi
MEMBER_SET(ctorDecl, mThisToken, tokenNode);
ParseMethod(ctorDecl, &params, &commas);
if (!baseClassCommas.IsEmpty())
{
ctorDecl->mPrefix = baseClassCommas.back();
baseClassCommas.pop_back();
ctorDecl->mSrcStart = ctorDecl->mPrefix->mSrcStart;
}
if (typeDeclaration->mAutoCtor == NULL)
{
MEMBER_SET(typeDeclaration, mAutoCtor, ctorDecl);