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

Math mutations are not placed when static using is used #2933

Open
richardwerkman opened this issue May 10, 2024 · 1 comment
Open

Math mutations are not placed when static using is used #2933

richardwerkman opened this issue May 10, 2024 · 1 comment
Assignees
Labels
🐛 Bug Something isn't working good first issue

Comments

@richardwerkman
Copy link
Member

Describe the bug

Math.Floor(5.5); // mutated

using static System.Math;
Floor(5.5); // not mutated

Expected behavior
I'd expect the second Floor method to be mutated as well.

Additional context
We currently check the syntax tree for the class name. We should use the semantic model for this.

@richardwerkman richardwerkman added 🐛 Bug Something isn't working good first issue labels May 10, 2024
@matiangelico
Copy link

I would like to work in this issue. Could you assign it to me @richardwerkman? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working good first issue
Projects
Status: No status
Development

No branches or pull requests

2 participants