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
Hi, we had an instance in our codebase where SwiftFormat removed return as redundant in front of try await withCheckedThrowingContinuation { ... }, which caused a type error. The outer function returns Void, and withCheckedThrowingContinuation is generic on its return type, so without return the compiler is not able to infer that the generic parameter should be Void too.
It seems perhaps that return is not redundant in front of try await ...?
Anyway, disabling redundantReturn for that line works for now.
The text was updated successfully, but these errors were encountered:
Hi, we had an instance in our codebase where SwiftFormat removed
return
as redundant in front oftry await withCheckedThrowingContinuation { ... }
, which caused a type error. The outer function returnsVoid
, andwithCheckedThrowingContinuation
is generic on its return type, so withoutreturn
the compiler is not able to infer that the generic parameter should beVoid
too.It seems perhaps that
return
is not redundant in front oftry await ...
?Anyway, disabling
redundantReturn
for that line works for now.The text was updated successfully, but these errors were encountered: