mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +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
|
@ -15848,7 +15848,7 @@ void BeMCContext::Generate(BeFunction* function)
|
||||||
mDbgPreferredRegs[32] = X64Reg_R8;*/
|
mDbgPreferredRegs[32] = X64Reg_R8;*/
|
||||||
|
|
||||||
//mDbgPreferredRegs[8] = X64Reg_RAX;
|
//mDbgPreferredRegs[8] = X64Reg_RAX;
|
||||||
mDebugging = (function->mName == "?TestBug@TestProgram@BeefTest@bf@@SAXXZ");
|
//mDebugging = (function->mName == "?TestBug@TestProgram@BeefTest@bf@@SAXXZ");
|
||||||
// || (function->mName == "?MethodA@TestProgram@BeefTest@bf@@CAXXZ");
|
// || (function->mName == "?MethodA@TestProgram@BeefTest@bf@@CAXXZ");
|
||||||
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
|
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
|
||||||
// ;
|
// ;
|
||||||
|
|
|
@ -19839,7 +19839,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup)
|
||||||
}
|
}
|
||||||
else if (methodDef->mMethodType == BfMethodType_PropertySetter)
|
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);
|
Fail("Auto-setter must be marked as 'mut'", methodDef->GetRefNode(), true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue