Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 351 Bytes

File metadata and controls

25 lines (20 loc) · 351 Bytes

GA0009

Title

Duplicate type rule

Category

Brevity

Severity

Warning

Details

This warning is emitted when a type appears more than once under the same type constraint rule.

Example

class C
<
    [PermittedTypes(typeof(int), typeof(short))]
    // GA0009 will appear here
    [PermittedTypes(typeof(int))]
    T
>
{ }