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

enforce immutable type params during immutability analysis #874

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

omsmith
Copy link
Contributor

@omsmith omsmith commented Feb 12, 2022

Decide a type is not immutable if any [Immutable] type parameters to do
satisfy that constraint during immutable type analysis.

Previously we would assume a different section of the analyzer caught
these, as we look at arguments to these type parameters specifically
even outside of actual immutable type analysis.

Checking during actual immutable type analysis means we don't miss it
when it really matters, in case we did otherwise.

Decide a type is not immutable if any [Immutable] type parameters to do
satisfy that constraint during immutable type analysis.

Previously we would assume a different section of the analyzer caught
these, as we look at arguments to these type parameters specifically
even outside of actual immutable type analysis.

Checking during actual immutable type analysis means we don't miss it
when it really matters, in case we did otherwise.
@omsmith omsmith force-pushed the omsmith/enforce-immutable-typeparams branch from f6b83e4 to 5ceb38a Compare February 12, 2022 21:22
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.

1 participant