1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Removed erroneous error for static property auto-setters mut

This commit is contained in:
Brian Fiete 2021-06-29 15:28:32 -07:00
parent 096dc0aaa3
commit 8796b3bcc1
2 changed files with 2 additions and 2 deletions

View file

@ -19839,7 +19839,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup)
}
else if (methodDef->mMethodType == BfMethodType_PropertySetter)
{
if ((!methodDef->mIsMutating) && (mCurTypeInstance->IsValueType()))
if ((!methodDef->mIsMutating) && (!methodDef->mIsStatic) && (mCurTypeInstance->IsValueType()))
{
Fail("Auto-setter must be marked as 'mut'", methodDef->GetRefNode(), true);
}