dotnet / dotnet/linker

Inconsistencies in RequiresAttribute argument validation

Open
#2,554 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
392
Forks
128
Avg merge
2d 10h
Merged PRs (30d)
2

Description

When checking for RequiresAttribute, we sometimes validate the arguments, and sometimes don't (look for `VerifyAttributeArguments` - currently this is only called when looking for attributes on the ctor of a type substituted for a generic parameter with a new constraint).

We should be consistent - most likely by validating the attribute arguments for every RequiresAttribute instance.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.