Project

General

Profile

Actions

Bug #21320

closed

Namespaces leak with constant lookup

Bug #21320: Namespaces leak with constant lookup

Added by fxn (Xavier Noria) 10 months ago. Updated about 2 months ago.

Status:
Closed
Target version:
-
[ruby-core:121955]
Tags:

Description

The following program

X = :top

class C
  X = :super
end

class D < C
  p X
end

prints :super normally, and :top if running under a namespace.

Actions

Also available in: PDF Atom