We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version Used:
Dotnet sdk 6.0.101
Steps to Reproduce:
string[] array = new[]{};
Expected Behavior:
No error
Actual Behavior:
No best type found for implicitly typed array.
The text was updated successfully, but these errors were encountered:
I believe this is by design. Your array has no elements. Note, you can just write: string[] s = {};
string[] s = {};
Sorry, something went wrong.
It looks like target typing new[] expressions is tracked by dotnet/csharplang/issues/2701.
new[]
Closing out as not a roslyn issue. Lang change can be tracked at teh linked issue above.
No branches or pull requests
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: