File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ // swift-format-ignore-file
2+ // Note: Whitespace changes are used to workaround compiler bug
3+ // https://github.com/swiftlang/swift/issues/79285
4+
15/// Evaluates a throwing closure and automatically catches and reports any error thrown.
26///
37/// - Parameters:
@@ -74,8 +78,9 @@ public func withErrorReporting<R>(
7478 line: UInt = #line,
7579 column: UInt = #column,
7680 isolation: isolated ( any Actor ) ? = #isolation,
77- catching body: ( ) async throws -> sending R
78- ) async -> R ? {
81+ // DO NOT FIX THE WHITESPACE IN THE NEXT LINE UNTIL 5.10 IS UNSUPPORTED
82+ // https://github.com/swiftlang/swift/issues/79285
83+ catching body: ( ) async throws -> sending R) async -> R ? {
7984 if let reporters {
8085 return await withIssueReporters ( reporters) {
8186 do {
You can’t perform that action at this time.
0 commit comments