Swift: Cast generic type into same generic type but with a subclass of associated type

前端 未结 3 821
说谎
说谎 2021-01-12 03:17

Consider these classes:

struct OrderedSet {}

class Exercise: Hashable {}

class StrengthExercise: Exercise {}

class CardioExercise: Exer         


        
3条回答
提交回复
热议问题