Yes. The syntax is the same as declaring base types:
class MyClass[of T(IComparable of T)]
Or, for other restrictions:
class MyClass[of T1(class, constructor), T2(struct)]
I think that the current version of Boo development does not support the general restrictions of type parameters that refer to themselves or to other type type parameters; Maybe I'm wrong.
Avish source
share