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

Investigate null data flow analysis and implicit bool operator #1805

Closed
citizenmatt opened this issue Aug 19, 2020 · 2 comments
Closed

Investigate null data flow analysis and implicit bool operator #1805

citizenmatt opened this issue Aug 19, 2020 · 2 comments
Milestone

Comments

@citizenmatt
Copy link
Member

If a UnityEngine.Object subclass is marked as [CanBeNull], and checked for nullness with an implicit bool check e.g. if (myComponent) or if (!myComponent), then ReSharper/Rider should know that the object is not null.

@citizenmatt
Copy link
Member Author

See this tweet

@citizenmatt
Copy link
Member Author

Fixed by #1906

@citizenmatt citizenmatt added this to the Rider 2020.3 milestone Oct 30, 2020
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