mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 18:18:00 +02:00
Fixed crash during attempt to derive from 'Base[Value]'
This commit is contained in:
parent
966b886fcc
commit
da29d695dd
3 changed files with 12 additions and 3 deletions
|
@ -3304,8 +3304,15 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
|
|||
startCheckType = target.mType->ToTypeInstance();
|
||||
}
|
||||
|
||||
if ((startCheckType != NULL) && (startCheckType->mBaseType == NULL))
|
||||
mModule->PopulateType(startCheckType, BfPopulateType_BaseType);
|
||||
if ((startCheckType != NULL) && (startCheckType->mBaseType == NULL))
|
||||
{
|
||||
if (startCheckType->mDefineState == BfTypeDefineState_ResolvingBaseType)
|
||||
{
|
||||
// Fixes cases where we have something like 'Base[Value]' as a base typeref
|
||||
return BfTypedValue();
|
||||
}
|
||||
mModule->PopulateType(startCheckType, BfPopulateType_BaseType);
|
||||
}
|
||||
|
||||
String findName;
|
||||
int varSkipCount = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue