1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed on-demand issue triggered by Result Dispose change

This commit is contained in:
Brian Fiete 2019-09-10 12:28:33 -07:00
parent 38a650fc2e
commit a33ca261d5

View file

@ -8314,7 +8314,7 @@ BfMethodInstance* BfModule::GetRawMethodInstanceAtIdx(BfTypeInstance* typeInstan
{ {
if (!mCompiler->mIsResolveOnly) if (!mCompiler->mIsResolveOnly)
{ {
BF_ASSERT(methodGroup.mOnDemandKind == BfMethodOnDemandKind_NoDecl_AwaitingReference); BF_ASSERT((methodGroup.mOnDemandKind == BfMethodOnDemandKind_NoDecl_AwaitingReference) || (methodGroup.mOnDemandKind == BfMethodOnDemandKind_Decl_AwaitingDecl));
methodGroup.mOnDemandKind = BfMethodOnDemandKind_Decl_AwaitingDecl; methodGroup.mOnDemandKind = BfMethodOnDemandKind_Decl_AwaitingDecl;
// Get it from the owning module so we don't create a reference prematurely... // Get it from the owning module so we don't create a reference prematurely...