We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e3f021c + 51ba2e2 commit 92ff281Copy full SHA for 92ff281
TestFoundation/TestNSError.swift
@@ -46,7 +46,7 @@ class TestNSError : XCTestCase {
46
let nsdictionary = ["error": error] as NSDictionary
47
let dictionary = nsdictionary as? Dictionary<String, Error>
48
XCTAssertNotNil(dictionary)
49
- XCTAssertEqual(error, dictionary?["error"] as NSError?)
+ XCTAssertEqual(error, dictionary?["error"] as? NSError)
50
}
51
52
func test_CustomNSError_domain() {
0 commit comments