Invalid usage of OnlyPermitSpecifiedTypesAttribute
Validity
Error
This error is emitted when a type parameter's explicit type constraints do not permit the usage of any type while including OnlyPermitSpecifiedTypesAttribute
.
class C
<
[ProhibitedTypes(typeof(int), typeof(long))]
// GA0012 will appear here
[OnlyPermitSpecifiedTypes]
T
>
{ }