mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed unspecialized variation assert
This commit is contained in:
parent
086c7952a4
commit
a64e595416
1 changed files with 3 additions and 3 deletions
|
@ -3149,7 +3149,7 @@ BfType* BfExprEvaluator::BindGenericType(BfAstNode* node, BfType* bindType)
|
|||
if ((mBfEvalExprFlags & BfEvalExprFlags_DeclType) != 0)
|
||||
return bindType;
|
||||
|
||||
BF_ASSERT(!mModule->mCurMethodInstance->mIsUnspecializedVariation);
|
||||
BF_ASSERT((!mModule->mCurMethodInstance->mIsUnspecializedVariation) || (mModule->mIsComptimeModule));
|
||||
|
||||
auto parser = node->GetSourceData()->ToParserData();
|
||||
if (parser == NULL)
|
||||
|
@ -3158,7 +3158,7 @@ BfType* BfExprEvaluator::BindGenericType(BfAstNode* node, BfType* bindType)
|
|||
|
||||
auto genericTypeBindings = mModule->mCurMethodState->GetRootMethodState()->mGenericTypeBindings;
|
||||
|
||||
if (mModule->mCurMethodInstance->mIsUnspecialized)
|
||||
if ((mModule->mCurMethodInstance->mIsUnspecialized) && (!mModule->mCurMethodInstance->mIsUnspecializedVariation))
|
||||
{
|
||||
if (!bindType->IsGenericParam())
|
||||
return bindType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue