-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Some mixed missed Equals nullable annotations #52166
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw null; }
Why "Attribute" was repeated twice? |
Weird -- I don't understand what's happening here either. @krwq can you review this and chime in if you've seen this before? |
The compiler is searching for the type, both as written and with an Attribute suffix added on (even though it already has one). It means the attribute isn't imported, which generally means either a) a using is missing or b) it's coming from some build targeting a framework that lacks the attribute and where we're not yet injecting an internal version. |
Thanks, @stephentoub! @hrrrrustic -- let us know if you need any help narrowing the build errors down from here. |
Once this is merged, we'll need to edit the description on dotnet/docs#21202 to include the affected APIs from this PR. |
What kind of using you're talking about? The error was in the ref file, I've never saw usings in it 😄
to So I assume it's not possible to use this attribute here yet (correct me if I'm wrong) and simply revert changes |
@hrrrrustic
|
959170c
to
ceeaccf
Compare
Rebased on top to be above #53199 |
...crosoft.Extensions.Logging.Abstractions/ref/Microsoft.Extensions.Logging.Abstractions.csproj
Outdated
Show resolved
Hide resolved
…crosoft.Extensions.Logging.Abstractions.csproj Co-authored-by: Buyaa Namnan <buyankhishig.namnan@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
The Wasm test failures seem fixed , but rerunning that CI leg is not fixing the failure, so closing the PR and reopening it back
|
Decided to push it without splitting by areas because there are not so much changes