-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Asserts in ILLink analyzer #94858
Comments
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas |
Thanks for reporting. It would be helpful if you could include the code changes you had made at the time of the assert (just the line numbers mentioned in the error should be enough).
I'll experiment and see if I can find a way to hit this. |
I was typing pretty fast and I don't know what was there at the time it triggered. Sorry :( |
It very likely was invalid C# syntax; I was typing and editing and most likely in an inconsistent state. |
What's confusing is that this code path should already be handling invalid C#. The assert indicates we were processing an assignment where the LHS was a BinaryOperation. I can't think of valid C# that does this. Code like |
I found a repro for this - code like |
I don't know how to repro, but I was making some changes in System.Linq.csproj and all of a sudden was presented with a ton of these:
The text was updated successfully, but these errors were encountered: