Can't work in Xcode 10.3
RayJiang16 opened this issue · 1 comments
RayJiang16 commented
public protocol MemsCompatible {}
public extension MemsCompatible {
static var mems: MemsWrapper<Self>.Type {
get { MemsWrapper<Self>.self }
set {}
}
var mems: MemsWrapper<Self> {
get { MemsWrapper(self) }
set {}
}
}
get
里面省略 return
是 Swift 5.1
的特性,在 Swift 5
里面会报错
CoderMJLee commented
更新了