Skip to content

Conversation

@mame
Copy link
Member

@mame mame commented Jan 13, 2023

In Ruby 3.2 or later, a nested constant access like Foo::Bar::Baz is compiled to one instruction by the optimization ruby/ruby#6187

We try to spot which sub-node caues a NameError in question based on the constant name. We will give up if the same constant name is accessed in a nested access (Foo::Foo).

Fixes #31

In Ruby 3.2 or later, a nested constant access like `Foo::Bar::Baz` is
compiled to one instruction by the optimization ruby/ruby#6187

We try to spot which sub-node caues a NameError in question based on the
constant name. We will give up if the same constant name is accessed in
a nested access (`Foo::Foo`).

Fixes ruby#31
@mame mame merged commit 0a4db7d into ruby:master Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NameError column adjustment

1 participant