Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant lookup falls off top scope in new compiler scoping logic #440

Closed
headius opened this Issue Dec 12, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@headius
Copy link
Member

headius commented Dec 12, 2012

The top-level scope isn't handled right, so we fall through during lexical search and never get to hierarchical search below.

system ~/projects/jruby $ jruby -X+C -e "module Foo; Symbol = 1; end; class Bar; include Foo; def sym; Symbol; end; end; p Bar.new.sym"
Symbol

system ~/projects/jruby $ jruby -X-C -e "module Foo; Symbol = 1; end; class Bar; include Foo; def sym; Symbol; end; end; p Bar.new.sym"
1

@headius headius closed this in 40d9dab Dec 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.