Generated class inherits from generated template