mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fix for auto-props
This commit is contained in:
parent
6ae5d2e7aa
commit
876e89d034
2 changed files with 6 additions and 6 deletions
|
@ -6,10 +6,10 @@ namespace Beefy.widgets
|
|||
{
|
||||
public struct DesignEditableAttribute : Attribute
|
||||
{
|
||||
public String DisplayType { get; set; }
|
||||
public String Group { get; set; }
|
||||
public String DisplayName { get; set; }
|
||||
public String SortName { get; set; }
|
||||
public bool DefaultEditString { get; set; }
|
||||
public String DisplayType { get; set mut; }
|
||||
public String Group { get; set mut; }
|
||||
public String DisplayName { get; set mut; }
|
||||
public String SortName { get; set mut; }
|
||||
public bool DefaultEditString { get; set mut; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue