Edit

Share via


Constraint type '<typename>' already specified for this type parameter

A constraint list includes a class or interface constraint more than once.

A constraint list imposes requirements on the type argument passed to the type parameter. You can specify the following requirements in any combination:

  • The type argument must implement one or more interfaces

  • The type argument must inherit from at most one class

A type cannot implement or inherit from the same type more than once, and you cannot specify a type more than once in the same constraint list.

Error ID: BC32071

To correct this error

  • Remove any redundant specifications of the same class or interface. It should appear only once in the constraint list.

See also