1
0
Fork 0
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:
Brian Fiete 2020-05-08 15:43:27 -07:00
parent 6ae5d2e7aa
commit 876e89d034
2 changed files with 6 additions and 6 deletions

View file

@ -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);
}