Skip to content

Commit 1e35aaf

Browse files
committed
[test] Update for new string processing changes
We now define a `~=` operator for `Regex`.
1 parent 40a930e commit 1e35aaf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/StringProcessing/Parse/forward-slash-regex.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ _ = 0 . / 1 / 2 // expected-error {{expected member name following '.'}}
169169

170170
switch "" {
171171
case /x/:
172-
// expected-error@-1 {{expression pattern of type 'Regex<Substring>' cannot match values of type 'String'}}
173-
// expected-note@-2 {{overloads for '~=' exist with these partially matching parameter lists: (Substring, String)}}
174172
break
175173
case _ where /x /:
176174
// expected-error@-1 {{cannot convert value of type 'Regex<Substring>' to expected condition type 'Bool'}}

0 commit comments

Comments
 (0)