Skip to content

Commit e088eb1

Browse files
committed
This looks like a bug in prism: ``` $ rbenv shell 3.4.0-rc1 $ ruby -e 'pp ([["foo"]] in [/\Afoo\b/i | [/\Afoo\z/i, *]])' false $ ruby --parser=parse.y -e 'pp ([["foo"]] in [/\Afoo\b/i | [/\Afoo\z/i, *]])' true ```
1 parent 7e7f9bb commit e088eb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/net/imap.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,6 +3277,10 @@ def search_args(keys, charset_arg = nil, return: nil, charset: nil)
32773277
esearch = false
32783278
in [_, Array[RETURN_WHOLE, _, *] | RETURN_START]
32793279
raise ArgumentError, "conflicting return options"
3280+
in [_, Array[RETURN_WHOLE, _, *]] # workaround for https://bugs.ruby-lang.org/issues/20956
3281+
raise ArgumentError, "conflicting return options"
3282+
in [_, RETURN_START] # workaround for https://bugs.ruby-lang.org/issues/20956
3283+
raise ArgumentError, "conflicting return options"
32803284
in [return_opts, keys]
32813285
return_opts = convert_return_opts(return_opts)
32823286
esearch = true

0 commit comments

Comments
 (0)