Skip to content

Commit 083d32a

Browse files
committed
Type checker workaround: adjust test
1 parent 1358fc0 commit 083d32a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Tests/RegexBuilderTests/RegexDSLTests.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,11 @@ class RegexDSLTests: XCTestCase {
10991099
}
11001100
let _: (Substring, Substring, Int, Double?).Type
11011101
= type(of: regex3).RegexOutput.self
1102-
1103-
let regex4 = Regex {
1102+
1103+
// FIXME: Remove explicit type when type checker regression is fixed
1104+
let regex4: Regex<(
1105+
Substring, Substring, Substring, Substring, Substring?
1106+
)> = Regex {
11041107
OneOrMore("a")
11051108
Capture {
11061109
OneOrMore {

0 commit comments

Comments
 (0)