You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need reflection tests that test generic attributes.
dotnet/linker#2963 made it clear that we don't have any targeted reflection tests for the new scenario in the libraries partition. The newly added test is not a targeted reflection test - it's a S.R.Metadata test.
I would definitely at least put it in 8.0 but AFAIK generic attributes are new in C# for .NET 7.0 so we should have testing in place to make sure reflection on them actually works in various scenarios.
I would definitely at least put it in 8.0 but AFAIK generic attributes are new in C# for .NET 7.0 so we should have testing in place to make sure reflection on them actually works in various scenarios.
Sure, we will reevaluate all issue during 8.0 planning
Activity
buyaa-n commentedon Aug 11, 2022
We have some tests, but might need to improve the coverage
MichalStrehovsky commentedon Aug 12, 2022
The specific tests that are needed are tests that are using the generic type's T in the signatures (that's the bug we ran into).
So things like:
The existing tests are not testing much because they don't use the T.
MichalStrehovsky commentedon Aug 12, 2022
I would definitely at least put it in 8.0 but AFAIK generic attributes are new in C# for .NET 7.0 so we should have testing in place to make sure reflection on them actually works in various scenarios.
Cc @333fred
buyaa-n commentedon Aug 12, 2022
Sure, we will reevaluate all issue during 8.0 planning
333fred commentedon Aug 12, 2022
That's correct.
steveharter commentedon Jul 24, 2023
Moving to 9; the mono bug linked above unfortunately didn't add a test that would have helped here.
Added additional tests for generic attributes.
Added additional tests for generic attributes. (dotnet#106745)
Added additional tests for generic attributes. (dotnet#106745)
Added additional tests for generic attributes. (dotnet#106745)