Skip to content

Commit 4eae653

Browse files
authored
Merge pull request #59912 from hamishknight/fix-type-5.7
2 parents 83d77f7 + d44e6a3 commit 4eae653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/StringProcessing/Sema/regex_literal_type_inference.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ let r7 = #/(?:(?:(.(.(.)*)?))*?)?/#
3333
// ^ 1
3434
// ^ 2
3535
// ^ 3
36-
let _: Regex<(Substring, Substring??, Substring???, Substring????)>.Type = type(of: r7)
36+
let _: Regex<(Substring, Substring?, Substring?, Substring?)>.Type = type(of: r7)
3737

3838
let r8 = #/well(?<theres_no_single_element_tuple_what_can_we>do)/#
3939
let _: Regex<(Substring, theres_no_single_element_tuple_what_can_we: Substring)>.Type = type(of: r8)

0 commit comments

Comments
 (0)