mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed issues with some decltype statements in type alias decl
This commit is contained in:
parent
2af4468b4d
commit
9030d86562
2 changed files with 7 additions and 2 deletions
|
@ -2197,7 +2197,7 @@ void BfModule::LocalVariableDone(BfLocalVariable* localVar, bool isMethodExit)
|
|||
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))
|
||||
if ((mCurMethodInstance != NULL) && (mCurMethodInstance->mIsAutocompleteMethod) && (mCurMethodInstance->mMethodDef->mMethodType == BfMethodType_Ctor))
|
||||
deferFullAnalysis = true;
|
||||
|
||||
//bool deferFullAnalysis = true;
|
||||
|
@ -14571,6 +14571,8 @@ BfTypeOptions* BfModule::GetTypeOptions()
|
|||
{
|
||||
if ((mCurMethodState != NULL) && (mCurMethodState->mMethodTypeOptions != NULL))
|
||||
return mCurMethodState->mMethodTypeOptions;
|
||||
if (mCurMethodInstance == NULL)
|
||||
return NULL;
|
||||
return mSystem->GetTypeOptions(mCurTypeInstance->mTypeOptionsIdx);
|
||||
}
|
||||
|
||||
|
@ -15123,7 +15125,7 @@ void BfModule::EmitDefaultReturn()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (mCurMethodInstance->mReturnType->IsVar())
|
||||
if ((mCurMethodInstance == NULL) || (mCurMethodInstance->mReturnType->IsVar()))
|
||||
{
|
||||
// Ignore
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue