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
This can also happen with just try and no await -- SwiftFormat removes the second try from this:
/// Try to cast the object to the given type, and throw if it fails (`as?` + `XCTUnwrap`).
func XCTCast<TSource, TTarget>(
_ expression:@autoclosure()throws->TSource,
_:TTarget.Type=TTarget.self,
_ message:String="",
file:StaticString= #file,
line:UInt= #line
)throws->TTarget{tryXCTUnwrap(tryexpression()as?TTarget, message, file: file, line: line)}
Originally posted by @bbrk24 in #1478
The text was updated successfully, but these errors were encountered: