Avatar
swiftbot BOT 6/12/2018 9:36 AM
Author icon
koher
extension Never : Error {} enum Result<T, E: Error> { case success(T) case failue(E) } let a: Result<Int, Never> = .success(42) print(a)
Version:
swift-4.1.1-RELEASE
Output:
success(42)
Error: