Skip to content

Commit 46fb8bd

Browse files
committed
Attempt to work around compiler crash
1 parent 6e94d73 commit 46fb8bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/Testing/Events/Recorder/Event.HumanReadableOutputRecorder.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ extension Event.HumanReadableOutputRecorder {
277277
if issue.isKnown {
278278
testData.knownIssueCount += 1
279279
} else {
280-
testData.issueCount[issue.severity, default: 0] += 1
280+
let issueCount = testData.issueCount[issue.severity] ?? 0
281+
testData.issueCount[issue.severity] = issueCount + 1
281282
}
282283
context.testData[id] = testData
283284

0 commit comments

Comments
 (0)