-
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
CSC doesn't care if out parameter not assigned #24493
Comments
Please check to see what fields, if any, are contained in |
To clarify, if that is the case then it is a bug in the reference assembly. |
Indeed, there are no fields in |
Err, I guess the reference assembly for Why are there no fields in the reference assemblies? (IntelliSense/MSBuild seem to also use the ref assembly, so when I'm building in Visual Studio, I don't get any error message about the out parameter not being assigned there either.) |
That is a bug. We’ll move this bug to an appropriate repository. |
@gafter, I believe the issue has already been dealt with on the CoreFX side: dotnet/corefx#26286 and dotnet/buildtools#1859. However, it was only merged 15 days ago, so nothing has shipped with the fix yet. |
@tannergooding I don't see anything specifically changing |
Issue moved to dotnet/corefx #26624 via ZenHub |
It looks like it has already been fixed, at least somewhere: https://github.com/dotnet/corefx/blob/a3986843153e27e92c89907f58046bb37da0f9eb/src/System.Memory/ref/System.Memory.cs#L108 |
And the fix for |
I wasn't able to find the contract assembly for KVP and commented as such on the new issue (forgot to comment as such here as well). |
Nevermind, it's in (GitHub search wouldn't find it, |
Version Used: Microsoft (R) Visual C# Compiler version 2.6.0.62329 (5429b35)
Steps to Reproduce:
Expected Behavior: Show error message and fail to compile.
Actual Behavior: Compilation succeeds.
The text was updated successfully, but these errors were encountered: