summaryrefslogtreecommitdiffhomepage
path: root/test/t/module.rb
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-06-16 20:43:23 +0900
committerKOBAYASHI Shuji <[email protected]>2019-06-16 20:43:23 +0900
commit030dd6655e47dad4af4b48a74646712c00684698 (patch)
treeae6871b0d93d36dc5cfd896cbd63f23db04e5297 /test/t/module.rb
parentab5ffb308b65a365d5f68662f30b223ccbde3b03 (diff)
downloadmruby-030dd6655e47dad4af4b48a74646712c00684698.tar.gz
mruby-030dd6655e47dad4af4b48a74646712c00684698.zip
Fix cvar, ivar, const and method can be removed to frozen object
Diffstat (limited to 'test/t/module.rb')
-rw-r--r--test/t/module.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/t/module.rb b/test/t/module.rb
index 3bb9735df..571f4759d 100644
--- a/test/t/module.rb
+++ b/test/t/module.rb
@@ -262,6 +262,7 @@ assert('Module#remove_const', '15.2.2.4.40') do
%i[x X!].each do |n|
assert_raise(NameError) { Test4RemoveConst.remove_const(n) }
end
+ assert_raise(FrozenError) { Test4RemoveConst.freeze.remove_const(:A) }
end
assert('Module#const_missing', '15.2.2.4.22') do