mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed ref auto-prop mut error
This commit is contained in:
parent
06f4eb9576
commit
ce8d2e7d0d
1 changed files with 1 additions and 1 deletions
|
@ -20710,7 +20710,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup,
|
|||
}
|
||||
else if (methodDef->mMethodType == BfMethodType_PropertyGetter)
|
||||
{
|
||||
if ((methodInstance->mReturnType->IsRef()) && (!methodDef->mIsMutating))
|
||||
if ((methodInstance->mReturnType->IsRef()) && (!methodDef->mIsMutating) && (mCurTypeInstance->IsValueType()))
|
||||
Fail("Auto-implemented ref property getters must declare 'mut'", methodInstance->mMethodDef->GetRefNode());
|
||||
|
||||
if (methodInstance->mReturnType->IsValuelessType())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue