We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee08dc9 + d62d906 commit 922201eCopy full SHA for 922201e
SwiftCompilerSources/Sources/AST/DiagnosticEngine.swift
@@ -93,15 +93,17 @@ public struct DiagnosticEngine {
93
}
94
95
96
- for arg in args {
+ // 'reversed()' because the closure should be wrapped in that order.
97
+ for arg in args.reversed() {
98
closure = { [closure, arg] in
99
arg._withBridgedDiagnosticArgument { bridgedArg in
100
bridgedArgs.append(bridgedArg)
101
closure()
102
103
104
- for fixIt in fixIts {
105
106
+ for fixIt in fixIts.reversed() {
107
closure = { [closure, fixIt] in
108
fixIt.withBridgedDiagnosticFixIt { bridgedFixIt in
109
bridgedFixIts.append(bridgedFixIt)
0 commit comments