Project

General

Profile

Actions

Bug #21974

closed

Cannot inspect RubyVM::AST for CDECL

Bug #21974: Cannot inspect RubyVM::AST for CDECL

Added by kddnewton (Kevin Newton) 1 day ago. Updated about 1 hour ago.

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

Description

./ruby -e 'pp RubyVM::AbstractSyntaxTree.parse("::Foo = 1")'

and

./ruby -e 'p RubyVM::AbstractSyntaxTree.parse("::Foo = 1").children[2].children'

both crash

Updated by afurm (Andrii Furmanets) about 1 hour ago Actions #2

  • Status changed from Open to Closed

Applied in changeset git|4009b713a64f469e593ffbc5bb4b37eff43f3be3.


[Bug #21974] Fix RubyVM::AST inspection for ::Foo = 1 (#16642)

  • Fix AST CDECL children for top-level constants

  • Simplify cdecl AST regression test

Actions

Also available in: PDF Atom