A property that is defined with a setter (a functionВ set declaration) and getter (a functionВ get declaration) has an attribute applied to the setter, which is not allowed. All attributes must be applied explicitly to the getter, if a getter is present. The compiler applies the attributes implicitly to the setter.
To correct this error
Apply the attribute the to property getter.