我已经宣布的错误类型雨燕2.1错误类型不符合协议RawRepresentable
enum UserServicesError: ErrorType {
case UserNotLogged
}
,但我得到一个错误
Argument type 'UserServicesError' does not conform to expected type 'ErrorType'
Type 'UserServicesError' does not conform to protocol 'RawRepresentable'
任何想法ÿ?官方文件说这个声明是足够的。
Apple Swift 2.1 Error handling documentation
是的 - 绝对值得提供雷达。 :-) –