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

Update S2743: "Static fields in generic types" should be code smell #439

Closed
valhristov opened this issue Jun 14, 2017 · 0 comments
Closed
Milestone

Comments

@valhristov
Copy link
Contributor

RSPEC-2743

A static field in a generic type is not shared among instances of different closed constructed types, thus LengthLimitedSingletonCollection<int>.instances and LengthLimitedSingletonCollection<string>.instances will point to different objects, even though instances is seemingly shared among all LengthLimitedSingletonCollection<> generic classes.

@valhristov valhristov added this to the 6.0 milestone Jun 14, 2017
@valhristov valhristov changed the title Update S2743: Static fields should not be used in generic types Update S2743: "Static fields in generic types" should be code smell Jun 14, 2017
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

No branches or pull requests

1 participant