Skip to content
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

Add null suppression to component reference capture #8320

Merged
merged 5 commits into from
Mar 1, 2023

Conversation

jjonescz
Copy link
Member

Fixes #8170.

@jjonescz jjonescz marked this pull request as ready for review February 24, 2023 11:02
@jjonescz jjonescz requested a review from a team as a code owner February 24, 2023 11:02
@@ -7322,6 +7322,58 @@ public class MyComponent : ComponentBase
CompileToAssembly(generated);
}

[Fact] // https://github.com/dotnet/razor/issues/8170
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, if we don't already have [WorkItem(...)] attribute in this repo we should add it and use it here. Many times in the past we've gotten an advantage by having related issues be greppable in the system.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could do that in separate PR. I already added bunch of these comments in my bug fixes, so I would replace them all.

@jjonescz jjonescz enabled auto-merge (squash) March 1, 2023 14:21
@jjonescz jjonescz merged commit 0591c70 into dotnet:main Mar 1, 2023
@jjonescz jjonescz deleted the 8170-ref-NullWarning branch March 1, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Blazor] CS8625: Cannot convert null literal to non-nullable reference type
3 participants