summaryrefslogtreecommitdiffhomepage
path: root/test/t/module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/module.rb')
-rw-r--r--test/t/module.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/t/module.rb b/test/t/module.rb
index 170eb925a..48a09f720 100644
--- a/test/t/module.rb
+++ b/test/t/module.rb
@@ -503,3 +503,17 @@ assert('Issue 1467') do
C1.new
C2.new
end
+
+assert('clone Module') do
+ module M1
+ def foo
+ true
+ end
+ end
+
+ class B
+ include M1.clone
+ end
+
+ B.new.foo
+end