From 4b59c1463c401248933eab8e9ffa4ed6fbf62c16 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 24 Jan 2024 06:42:31 -0500 Subject: [PATCH] Fixed parameter attribute resolution in partials in CreateTypeData --- IDEHelper/Compiler/BfModule.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 17e41cef..fa847e62 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -7335,6 +7335,11 @@ BfIRValue BfModule::CreateTypeData(BfType* type, Dictionary& usedStrin SetAndRestoreValue prevTypeInstance(mCurTypeInstance, typeInstance); if (auto methodDeclaration = methodDef->GetMethodDeclaration()) { + BfTypeState typeState; + typeState.mPrevState = mContext->mCurTypeState; + typeState.mForceActiveTypeDef = methodDef->mDeclaringType; + SetAndRestoreValue prevTypeState(mContext->mCurTypeState, &typeState); + for (BfParameterDeclaration* paramDecl : methodDeclaration->mParams) { if (paramDecl->mAttributes != NULL)