Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 420 Bytes

File metadata and controls

24 lines (19 loc) · 420 Bytes

GA0008

Title

Redundant base type rule

Category

Brevity

Severity

Warning

Details

This warning is emitted when a permitted base type is sealed, that is, when it is explicitly marked as a sealed class or record, or when it is a (nullable) struct, tuple, enum or delegate.

Example

class C
<
    // GA0008 will appear here
    [PermittedBaseTypes(typeof(byte), typeof(short))]
    T
>
{ }