mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fix for auto-props
This commit is contained in:
parent
6ae5d2e7aa
commit
876e89d034
2 changed files with 6 additions and 6 deletions
|
@ -17473,7 +17473,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup)
|
|||
}
|
||||
else if (methodDef->mMethodType == BfMethodType_PropertySetter)
|
||||
{
|
||||
if (!methodDef->mIsMutating)
|
||||
if ((!methodDef->mIsMutating) && (mCurTypeInstance->IsValueType()))
|
||||
{
|
||||
Fail("Auto-setter must be marked as 'mut'", methodDef->GetRefNode(), true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue