File tree 1 file changed +15
-0
lines changed
patches/swift-experimental-string-processing
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ Swift 5.5.2/Xcode 13.2 refuses to compile this piece as it is "unable to infer complex closure return type."
2
+
3
+ diff --git a/Sources/_RegexParser/Utility/TypeConstruction.swift b/Sources/_RegexParser/Utility/TypeConstruction.swift
4
+ index 4d1765e..39b4595 100644
5
+ --- a/Sources/_RegexParser/Utility/TypeConstruction.swift
6
+ +++ b/Sources/_RegexParser/Utility/TypeConstruction.swift
7
+ @@ -60,7 +60,7 @@ public enum TypeConstruction {
8
+ flags |= 0x10000
9
+ }
10
+
11
+ - let result = elementTypes.withContiguousStorageIfAvailable { elementTypesBuffer in
12
+ + let result = elementTypes.withContiguousStorageIfAvailable { elementTypesBuffer -> (value: Any.Type, state: Int) in
13
+ if let labels = labels {
14
+ return labels.withCString { labelsPtr in
15
+ swift_getTupleTypeMetadata(
You can’t perform that action at this time.
0 commit comments