Skip to content

Add support for generic attributes#36

Merged
marek-safar merged 2 commits intodotnet:mainfrom
sbomer:genericAttributes
Aug 23, 2022
Merged

Add support for generic attributes#36
marek-safar merged 2 commits intodotnet:mainfrom
sbomer:genericAttributes

Conversation

@sbomer
Copy link
Copy Markdown
Member

@sbomer sbomer commented Aug 17, 2022

This adds support for generic attributes, added in C# 10. This is needed to fix a linker crash on runtime tests that used generic attributes: dotnet/linker#2963

Upstreaming this in jbevain#871.

@sbomer
Copy link
Copy Markdown
Member Author

sbomer commented Aug 17, 2022

@MichalStrehovsky @vitek-karas @marek-safar PTAL (I can't add reviewers)

Copy link
Copy Markdown
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Not an expert, but looks reasonable. Nice that it already worked for the named arguments case.

Does the test also test writing? Though, I'm not too concerned about that since I assume we'll have writing coverage in the linker repo.

@sbomer
Copy link
Copy Markdown
Member Author

sbomer commented Aug 18, 2022

Yes, TestModule will test writing. I didn't look too closely at what exactly it validates, but it does some kind of round-tripping, and was hitting the same crash in the writing code before the fix.

@sbomer
Copy link
Copy Markdown
Member Author

sbomer commented Aug 22, 2022

@marek-safar would you be able to merge this? I don't have permission. Thanks!

@marek-safar marek-safar merged commit 1840b74 into dotnet:main Aug 23, 2022
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.

4 participants