summaryrefslogtreecommitdiff
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
authorJeremy Evans <[email protected]>2022-06-20 15:51:05 -0700
committerJeremy Evans <[email protected]>2022-07-21 08:28:05 -0700
commit12ac8971a394118a57640299f654e46e763093fa (patch)
tree9496a60714ae5b67c525e895998d11db105169b7 /test/ruby/test_module.rb
parent04f86ad0b5d2fe4711ff300d855228a6aed55f33 (diff)
Do not have class/module keywords look up ancestors of Object
Fixes case where Object includes a module that defines a constant, then using class/module keyword to define the same constant on Object itself. Implements [Feature #18832]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6048
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 3dae3916ff..137da09bc3 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1328,8 +1328,6 @@ class TestModule < Test::Unit::TestCase
end
end
include LangModuleSpecInObject
- module LangModuleTop
- end
puts "ok" if LangModuleSpecInObject::LangModuleTop == LangModuleTop
INPUT