Specify requirements of parametric type params?


#1

I want to define a type

type MyParametricType<P> {

}

where P must mix Persistable. How can I enforce this?


Ensuring type constraints on parametric types
#2

e.g.

type AclEnabled<T: Persistable> {
}