Skip to content
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

Subtypes of immutable types -- linting their field assignments #56

Closed
tonyhffong opened this issue Nov 23, 2014 · 0 comments · Fixed by #179
Closed

Subtypes of immutable types -- linting their field assignments #56

tonyhffong opened this issue Nov 23, 2014 · 0 comments · Fixed by #179

Comments

@tonyhffong
Copy link
Owner

Complex and AbstractArray are abstract immutable types.

However, Complex{Float64} is an concrete immutable type, but many subtypes of AbstractArray are mutable. There's no way for lint to tell if a generic function defined on the abstract type is trying to mutate an immutable subtype, or not.

While trying to catch setting complex field, there are now lots of false positives in linting functions on AbstractArrays.

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 a pull request may close this issue.

1 participant