From: rick.hull@... Date: 2017-12-02T00:14:19+00:00 Subject: [ruby-core:84048] [Ruby trunk Bug#14148] Ruby 2.5.0-preview1 - broken constant lookup Issue #14148 has been reported by RickHull (Rick Hull). ---------------------------------------- Bug #14148: Ruby 2.5.0-preview1 - broken constant lookup https://bugs.ruby-lang.org/issues/14148 * Author: RickHull (Rick Hull) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.0preview1 (2017-10-10 trunk 60153) [x86_64-linux] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- ~~~ ruby module Kernel X = 1 end puts String::X X = 2 puts String::X ~~~ ~~~ $ ruby test.rb 1 Traceback (most recent call last): test.rb:9:in `
': uninitialized constant String::X (NameError) Did you mean? X $ ruby --version ruby 2.5.0preview1 (2017-10-10 trunk 60153) [x86_64-linux] ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: