diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-09-28 12:36:17 -0400 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2023-09-28 15:13:09 -0400 |
| commit | b1a28b05db87ff520807ccd55d34e69fcd6ea53c (patch) | |
| tree | 44d5a0a25c03711f6fa7b3d5bfa66a91c6229b4c /test/ruby | |
| parent | 41d3e23582b3030a652919ee10fda114d7eb5626 (diff) | |
Support local variable targeting in pattern matching
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index d3fdfd68f1..f65025b9df 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -373,6 +373,8 @@ module Prism test_prism_eval("\"foo1\" in /...\#{1}/") test_prism_eval("4 in ->(v) { v.even? }") + test_prism_eval("5 in foo") + test_prism_eval("1 in 2") end |
