I have downloaded Xcode 10.2 beta release. I am trying to use new Result type in Application project or Playground with Swift 5 enabled.
My code is as below:
import UIKit
enum SampleError: Error {
case foo
}
func bar() -> Result<Int, SampleError> {
}
When compiling I am getting:
Use of undeclared type 'Result'
I have double checked settings and verified with below code that I am using Swift 5.0
#if swift(>=5.0)
print("Hello, Swift 5.0")
#endif
Does anybody encountered similar issue?