Project

General

Profile

Actions

Feature #3768

closed

Constant Lookup doesn't work in a subclass of BasicObject

Added by trans (Thomas Sawyer) over 14 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
-
[ruby-core:31956]

Description

=begin
ruby-1.9.2-p0 > module M
ruby-1.9.2-p0 ?> end
=> nil
ruby-1.9.2-p0 > class X < BasicObject
ruby-1.9.2-p0 ?> include M
ruby-1.9.2-p0 ?> end
NameError: uninitialized constant X::M
from (irb):4:in <class:X>' from (irb):3 from /home/trans/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in '
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #5067: BasicObject's constant lookup documentationClosed07/21/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0