swift class protocol-限定协议只能由类实现

protocol GameMode:class

 

“You can limit protocol adoption to class types (and not structures or enumerations) by adding the class keyword must always appear first in a protocol’s inheritance list, before any inherited protocols”

posted @ 2018-07-17 14:53  zzfx  阅读(293)  评论(0编辑  收藏  举报