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
The diagnostic there is a little misleading, because the function being called is actually generic with a constraint of <T: XCTestCase>, so it would also be fair to say that the failed conversion is from [(String, (JSONTests) -> () -> Void)] to [(String, (JSONTests) -> () throws -> Void)], at which point I believe that @belkadan's covariance analysis is correct.
Regardless, I agree with @ddunbar that adding an overload in XCTest to handle this case is an appropriate course of action at this point.
Additional Detail from JIRA
md5: c858676023ccc3bab722fe07f764cb24
Issue Description:
I would like to write Linux tests as:
but type inference will fail with something like:
It would be nice if Linux XCTest would accept throwing and non-throwing variants of the
testCase
function.The text was updated successfully, but these errors were encountered: