import Foundation
@objc public protocol ObjcProtocol {
}
它显示以下错误:
继承自非协议,非类别类型' A' public func someFunc(a:A.Type,b:B) - >布尔{ 返回true }
func someFunc(a: AnyObject.Type, b: AnyObject) -> Bool {
return false
}
protocol MyProtocol: ObjcProtocol {
}
class MyBaseClass: MyProtocol {
}
class MyDerivedClass: MyBaseClass {
}
someFunc(ObjcProtocol.self, MyBaseClass())
我该怎么办?