-
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
False positive CS0826 on empty array #59701
Labels
Comments
dotnet-issue-labeler
bot
added
Area-Compilers
untriaged
Issues and PRs which have not yet been triaged by a lead
labels
Feb 23, 2022
I believe this is by design. Your array has no elements. Note, you can just write: |
It looks like target typing |
Closing out as not a roslyn issue. Lang change can be tracked at teh linked issue above. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Version Used:
Dotnet sdk 6.0.101
Steps to Reproduce:
string[] array = new[]{};
Expected Behavior:
No error
Actual Behavior:
The text was updated successfully, but these errors were encountered: