Skip to content

Commit 6416295

Browse files
committed
Work around change in integer literal inference
Related to swiftlang/swift#78371, but doesn't need to be reverted after that issue is fixed.
1 parent f6c6eb1 commit 6416295

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/Exercises/Participants/HandWrittenParticipant.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ private func graphemeBreakPropertyData(
6060
}
6161

6262
// For testing our framework
63-
if forceFailure, lower == Unicode.Scalar(0x07FD) {
63+
let failureSigil = Unicode.Scalar(0x07FD as UInt32)!
64+
if forceFailure, lower == failureSigil {
6465
return nil
6566
}
6667

Sources/_StringProcessing/Regex/Match.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ extension Regex.Match {
4141
from: anyRegexOutput.input
4242
)
4343
guard let output = typeErasedMatch as? Output else {
44+
print(typeErasedMatch)
45+
print(Output.self)
4446
fatalError("Internal error: existential cast failed")
4547
}
4648
return output

0 commit comments

Comments
 (0)