-
-
Notifications
You must be signed in to change notification settings - Fork 643
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 support for custom attributes on generic constraints #594
Conversation
jbevain
commented
Jun 20, 2019
•
edited
Loading
edited
81085a9
to
febbd65
Compare
This is required to support dotnet/roslyn#29997 |
Tagging @sbomer @marek-safar @agocke. We're trying to understand what it would take to get this change flowing into ILLinker for the next preview. |
To reach the linker, this would need to flow to |
{ | ||
var constraints = parameter.Constraints; | ||
|
||
for (int i = 0; i < constraints.Count; i++) |
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.
@jbevain out of curiosity, why do u prefer for over foreach?
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.
This codebase was started at a moment where mcs
didn't generate great code for foreach
on generic collections, and so used for
instead of foreach
. It's now used only for consistency with the rest of the code.
For nullability support. Mono.Cecil introduced a breaking change in jbevain/cecil#594 because of dotnet/roslyn#29997
For nullability support. Mono.Cecil introduced a breaking change in jbevain/cecil#594 because of dotnet/roslyn#29997