Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 485 Bytes

File metadata and controls

25 lines (19 loc) · 485 Bytes

GA0030

Title

Type constraint attributes used on non-profile interface

Category

Design

Severity

Warning

Details

This warning is emitted when type constraint-related attributes are used on an interface that is not declared as a type constraint profile.

Example

// GA0030 will appear here
[PermittedTypes(typeof(int))]
interface INonProfile { }

// GA0030 will appear here
[PermittedTypes(typeof(int))]
[TypeConstraintProfileGroup]
interface IGroup { }