Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS0706
Invalid constraint type. A type used as a constraint must be an interface, a non-sealed class or a type parameter.