Skip to content

EnforceReadonlyPublicProperty: exclude hooked properties #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 16, 2025

Conversation

janedbal
Copy link
Member

@janedbal janedbal commented May 16, 2025

For that reason, a readonly property with a get or set hook is disallowed and will throw a compile error.

@janedbal janedbal changed the title EnforceReadonlyPublicProperty: exclude hooked interface properties EnforceReadonlyPublicProperty: exclude hooked properties May 16, 2025
@janedbal janedbal merged commit 879bcdc into master May 16, 2025
14 checks passed
@janedbal janedbal deleted the public-readonly-iface branch May 16, 2025 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EnforceReadonlyPublicPropertyRule vs. get property hook in interface
1 participant