Skip to content

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.

2 participants