1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed struct ctor assigned checking during autocomplete

This commit is contained in:
Brian Fiete 2020-10-23 10:12:40 -07:00
parent 994640df11
commit b71d7beb47

View file

@ -2104,6 +2104,11 @@ void BfModule::LocalVariableDone(BfLocalVariable* localVar, bool isMethodExit)
// We may skip processing of local methods, so we won't know if it bind to any of our local variables or not
bool deferFullAnalysis = mCurMethodState->GetRootMethodState()->mLocalMethodCache.size() != 0;
// We may have init blocks that we aren't processing here...
if ((mCurMethodInstance->mIsAutocompleteMethod) && (mCurMethodInstance->mMethodDef->mMethodType == BfMethodType_Ctor))
deferFullAnalysis = true;
//bool deferFullAnalysis = true;
bool deferUsageWarning = deferFullAnalysis && mCompiler->IsAutocomplete();