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
VS2017 crashes when parsing C# Span code #25485
Comments
This seems to be very similar to #25398. |
Same exception, same function, fairly different stack trace. Hopefully there aren't too many different ways to trigger the same bug... |
Tagging @VSadov |
The exception happens when a roslyn/src/Compilers/CSharp/Portable/Binder/Binder.ValueChecks.cs Lines 2319 to 2320 in 07c65e2
My guess is that the fix is going to be to add cases for all remaining expression kinds and that should fix all instances of this bug. |
Version Used:
Microsoft Visual Studio Enterprise 2017
Version 15.6.2
Steps to Reproduce:
Thing[]
toSpan<Thing>[]
Expected Behavior:
error CS0611: Array elements cannot be of type 'Span<Thing>'
Actual Behavior:
Entire Visual Studio IDE locks up and eventually crashes.
Exception:
The text was updated successfully, but these errors were encountered: