Skip to content

Commit d44e6a3

Browse files
committed
[test] Update Regex type for flattened captures
1 parent f1c35d5 commit d44e6a3

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)