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

OnlyIf'd type parameters should be considered immutable #666

Merged
merged 1 commit into from
Nov 29, 2020

Conversation

omsmith
Copy link
Contributor

@omsmith omsmith commented Nov 29, 2020

GetImmutabilityFromAttributes is used when checking type parameters. Forgot to add the addtribute here

GetImmutabilityFromAttributes is used when checking type parameters. Forgot to add the addtribute here
Comment on lines +767 to +768
[ConditionallyImmutable]
public sealed class AnalyzedImmutableGenericClassGivenT<[ConditionallyImmutable.OnlyIf] T, U> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-pasta'd AnalyzedImmutableGenericClassRestrictingT

@omsmith omsmith merged commit c4fd0f3 into master Nov 29, 2020
@omsmith omsmith deleted the omsmith/onlyif-immutable branch November 29, 2020 00:13
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