Project

General

Profile

Actions

Bug #20765

closed

Unexpected node type in pattern matching expression: PM_IMPLICIT_REST_NODE evaluating `a=>*,`

Added by tompng (tomoya ishida) 9 months ago. Updated 9 months ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 3.4.0dev (2024-09-27T17:45:22Z master 027ef60500) +PRISM [x86_64-linux]
[ruby-core:119329]

Description

# ruby --parser=prism -e "a=>*,"
-e: [BUG] Unexpected node type in pattern matching expression: PM_IMPLICIT_REST_NODE

# ruby --parser=parse.y -e "a=>*,"
-e:1: syntax error, unexpected end-of-input

Updated by mame (Yusuke Endoh) 9 months ago

  • Assignee set to kddnewton (Kevin Newton)

Updated by kddnewton (Kevin Newton) 9 months ago

Thank you — I have opened https://github.com/ruby/prism/pull/3096 to fix this.

Actions #3

Updated by kddnewton (Kevin Newton) 9 months ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0