You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
funcf(_: @escaping () -> ()) {}
funcg(_: @escaping@autoclosure () throws -> ()) {}
funck() throws {}
let_ = f { // invalid conversion from throwing function of type '() throws -> ()' to non-throwing function type '() -> ()'g(tryk())
}
The problem is that @autoclosure is not handled correctly.
Environment
Xcode Version 12.5.1 (12E507) on the Mac
Note that this problem also happens on the Linux platform (Docker image version 5.3)
Additional Detail from JIRA
md5: 44803371d9ed3e7ba09dd4f36547b315
Issue Description:
I have the following code:
This code produces a warning:
which seems to indicate that the do block does not throw an error (which is also the expectation). The obvious solution is to remove the catch block:
which then produces the error:
which seems to indicate that XCTAssertThrowsError does throw an error
The text was updated successfully, but these errors were encountered: