mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed invalid 'this' lookup during const type resolution
This commit is contained in:
parent
9154511e78
commit
ee06457b2f
1 changed files with 5 additions and 2 deletions
|
@ -13992,6 +13992,9 @@ BfTypedValue BfModule::GetThis()
|
|||
}
|
||||
}
|
||||
|
||||
if (mCurMethodInstance == NULL)
|
||||
return BfTypedValue();
|
||||
|
||||
auto localDef = useMethodState->mLocals[0];
|
||||
auto curMethodOwner = mCurMethodInstance->mMethodInstanceGroup->mOwner;
|
||||
if ((curMethodOwner->IsStruct()) || (curMethodOwner->IsTypedPrimitive()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue