mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed lack of error with assignment checking in expression-body methods
This commit is contained in:
parent
b1e6ce17a6
commit
1d42cde61d
1 changed files with 5 additions and 2 deletions
|
@ -4350,6 +4350,9 @@ void BfModule::CreateValueTypeEqualsMethod(bool strictEquals)
|
|||
if (fieldInstance->mResolvedType->IsValuelessType())
|
||||
continue;
|
||||
|
||||
if (fieldInstance->mResolvedType->IsVar())
|
||||
continue;
|
||||
|
||||
BfTypedValue leftValue = ExtractValue(leftTypedVal, fieldInstance, fieldInstance->mDataIdx);
|
||||
BfTypedValue rightValue = ExtractValue(rightTypedVal, fieldInstance, fieldInstance->mDataIdx);
|
||||
|
||||
|
@ -18353,7 +18356,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup)
|
|||
|
||||
for (auto localVar : mCurMethodState->mLocals)
|
||||
{
|
||||
if ((skipEndChecks) || (bodyBlock == NULL))
|
||||
if ((skipEndChecks) || (methodDef->mBody == NULL))
|
||||
break;
|
||||
|
||||
LocalVariableDone(localVar, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue