mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed nested local method skipping during resolution
This commit is contained in:
parent
1c7b7df25f
commit
e247e3ecb4
1 changed files with 6 additions and 1 deletions
|
@ -3507,7 +3507,12 @@ void BfModule::VisitCodeBlock(BfBlock* block)
|
||||||
BfLocalMethod* localMethod = mCurMethodState->mLocalMethods[curLocalMethodIdx];
|
BfLocalMethod* localMethod = mCurMethodState->mLocalMethods[curLocalMethodIdx];
|
||||||
BF_ASSERT(localMethod->mMethodDeclaration == localMethodDecl->mMethodDeclaration);
|
BF_ASSERT(localMethod->mMethodDeclaration == localMethodDecl->mMethodDeclaration);
|
||||||
|
|
||||||
if ((wantsAllLocalMethods) || (autoComplete->IsAutocompleteNode(localMethod->mMethodDeclaration)))
|
bool wantsLocalMethod = (wantsAllLocalMethods) || (autoComplete->IsAutocompleteNode(localMethod->mMethodDeclaration));
|
||||||
|
|
||||||
|
if ((!wantsLocalMethod) && (mCurMethodInstance->mMethodDef->mIsLocalMethod))
|
||||||
|
wantsLocalMethod = true;
|
||||||
|
|
||||||
|
if (wantsLocalMethod)
|
||||||
{
|
{
|
||||||
if (!mCurMethodInstance->IsSpecializedGenericMethodOrType())
|
if (!mCurMethodInstance->IsSpecializedGenericMethodOrType())
|
||||||
GetLocalMethodInstance(localMethod, BfTypeVector(), NULL, true); // Only necessary on unspecialized pass
|
GetLocalMethodInstance(localMethod, BfTypeVector(), NULL, true); // Only necessary on unspecialized pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue