Swift: declaration 'description' cannot override more than one superclass declaration

前端 未结 4 1763
深忆病人
深忆病人 2021-02-08 10:07

I have a structure of inheritance similar to the one below. I\'m adopting the Printable protocol and diligently override description property. I have encountered a bizarre error

4条回答
  •  忘了有多久
    2021-02-08 10:38

    I don't have access to my Mac now, but I would try removing the override in First. override is needed when subclassing but not when implementing a protocol.

提交回复
热议问题