From b1a28b05db87ff520807ccd55d34e69fcd6ea53c Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Thu, 28 Sep 2023 12:36:17 -0400 Subject: Support local variable targeting in pattern matching --- test/ruby/test_compile_prism.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') 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 -- cgit v1.2.3