Project

General

Profile

Actions

Bug #21320

open

Namespaces leak with constant lookup

Added by fxn (Xavier Noria) 1 day ago. Updated about 15 hours ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:121955]

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: Atom PDF

Like0
Like0Like0