标签: swift xcode swift3
Error不应该是内置版本吗?这样:
Error
import Foundation struct Video { struct Source { enum SourceError: Error { case InvalidData case InvalidHeight case InvalidURL } } }
给了我Use of undeclared type 'Error' ..我正在使用xcode 8 beta 5
Use of undeclared type 'Error'