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:
parent
096dc0aaa3
commit
8796b3bcc1
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue