Navigation: X# 文档 > X# 编译器错误和警告
Error XS0701
'{0}' is not a valid constraint. A type used as a constraint must be an interface, a non-sealed class or a type parameter.