1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed struct construction when type is unpopulated. Better error check.

This commit is contained in:
Brian Fiete 2020-04-20 14:54:27 -07:00
parent 2b6e1d0d5d
commit 33448603b1
3 changed files with 3 additions and 1 deletions

View file

@ -6867,6 +6867,7 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
mModule->mCompiler->mResolvePassData->HandleTypeReference(targetSrc, resolvedTypeInstance->mTypeDef);
BfTypedValue structInst;
mModule->PopulateType(resolvedTypeInstance);
if (!resolvedTypeInstance->IsValuelessType())
{
if ((mReceivingValue != NULL) && (mReceivingValue->mType == resolvedTypeInstance) && (mReceivingValue->IsAddr()))