Project

General

Profile

Actions

Bug #17534

closed

Pattern-matching is broken with find pattern

Added by zverok (Victor Shepelev) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:102061]

Description

The minimal reproduction code:

case [1, 2, 3]
in y
  puts "branch1"
in [*, x, *]
  puts "branch2"
else
  puts "branch3"
end

This outputs long "raw disasm" sequence, and then

---------------------
break_pm.rb:6: argument stack underflow (-1)
break_pm.rb: compile error (SyntaxError)
$ ruby -v
ruby 3.1.0dev (2021-01-13T09:12:49Z master 6f6dfdcc68) [x86_64-linux]

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #19862: argument stack underflow compile error happens for the combination of and/or & one line pattern matchingClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0