Allow using self as a type variable