Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AlekseyTs
Copy link
Contributor

Closes #81695

@AlekseyTs AlekseyTs requested a review from a team as a code owner December 16, 2025 22:15
if (!TypeSymbol.Equals(awaiterFieldType, awaiterTemp.Type, TypeCompareKind.ConsiderEverything2))
{
Debug.Assert(awaiterFieldType.IsObjectType());
Debug.Assert(awaiterFieldType.IsObjectType() || TypeSymbol.Equals(awaiterFieldType, awaiterTempRef.Type, TypeCompareKind.AllIgnoreOptions));
Copy link
Member

Choose a reason for hiding this comment

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

Can we add a test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we add a test?

Theoretically it can be done, but I prefer to not spend time on that in context of this PR. Especially that the change doesn't affect the behavior. The fact that there is a follow up pending for a type comparison is "recorded" by TypeCompareKind.ConsiderEverything2 on the previous line. Most likely, we should be using TypeCompareKind.AllIgnoreOptions there, but I prefer to avoid introducing any potential behavior changes in this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Works for me, thanks.

@AlekseyTs AlekseyTs merged commit ac14d13 into dotnet:main Dec 17, 2025
26 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assertion failed, awaiterFieldRef.Type.IsObjectType() building Razor.sln

3 participants