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

Fix issue 44646 - ILAsm incorrectly handles method .custom attribute when we have generic type constraint #44850

Merged
merged 2 commits into from
Nov 19, 2020

Conversation

briansull
Copy link
Contributor

@briansull briansull commented Nov 18, 2020

The IL Assembler incorrectly dropped a .custom attribute for a method
This only occurs when the inline syntax for generic type parameters is used in the method definition.
This behavior can also occur for a generic class definition.
This changes fixes this issue for both generic classes and generic methods

#44646

…when we have generic type constraint

The IL Assembler incorrectly dropped a .custom attribute for the method
This only occurred when the inline syntax for generic type parameters was used in the method definition.
This behavior can also occur for a generic class definition.
@briansull
Copy link
Contributor Author

@dotnet/jit-contrib @BruceForstall PTAL

@briansull
Copy link
Contributor Author

This also fixes #32400

}

// returns true if we create a new GenericParamConstraintDescriptor
// reurns false if we return an already existing GenericParamConstraintDescriptor
// CheckAddGenericParamConstraint is called when we have to handle a generic parameter constariant
Copy link
Member

Choose a reason for hiding this comment

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

typo: constariant

dseefeld added a commit to dotnet/source-build that referenced this pull request Nov 19, 2020
@briansull briansull merged commit d3e5aa8 into dotnet:master Nov 19, 2020
@briansull briansull deleted the fix-44646 branch November 19, 2020 18:10
@ghost ghost locked as resolved and limited conversation to collaborators Dec 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants