Anonymous class _T should inherit from object