来源:https://stackoverflow.com/questions/63628278/using-a-generic-chosen-from-an-enumeration-of-types 标签 scala generics