-
Notifications
You must be signed in to change notification settings - Fork 4k
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
IDE0007 reported for stackalloc to Span<T> #22768
Comments
FYI @OmarTawfik |
Relates to #22411 (warn for use of |
It's similar, but this one appears to be a bug in the diagnostic analyzer not the compiler. |
#22411 would be primarily an analyzer and codefix too. We might add a compiler warning later on top of that. |
@jcouv are you planning to work on this one? I can take it otherwise. |
Go for it! |
@jinujoseph Should we bring this into 15.5 since it impacts usability of one of the key new features of the release? |
Version Used: 15.5 Preview 1
Steps to Reproduce:
Expected Behavior:
IDE0007 is not reported, because a change to use
var
also changes the type ofspan
.Actual Behavior:
IDE0007 is reported, and the code fix causes the code to break.
The text was updated successfully, but these errors were encountered: