diff options
| author | Carson McDonald <[email protected]> | 2013-08-13 11:39:30 -0400 |
|---|---|---|
| committer | Carson McDonald <[email protected]> | 2013-08-13 11:39:30 -0400 |
| commit | 3385a33e9ecef22a2498248dfa1d3f77896d5faa (patch) | |
| tree | 1ce5cac152bf00d079e5498731ecbd967f61de2d /test/t/module.rb | |
| parent | 7a2e0d6cf596b1ea6220b5bd1fb16abdc6859f13 (diff) | |
| download | mruby-3385a33e9ecef22a2498248dfa1d3f77896d5faa.tar.gz mruby-3385a33e9ecef22a2498248dfa1d3f77896d5faa.zip | |
Add two tests for issue #1467
Diffstat (limited to 'test/t/module.rb')
| -rw-r--r-- | test/t/module.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/t/module.rb b/test/t/module.rb index b192361ca..8655db391 100644 --- a/test/t/module.rb +++ b/test/t/module.rb @@ -481,3 +481,25 @@ assert('Module#inspect') do assert_equal 'Test4to_sModules', Test4to_sModules.inspect end + +assert('Issue 1467') do + module M1 + def initialize() + super() + end + end + + class C1 + include M1 + def initialize() + super() + end + end + + class C2 + include M1 + end + + C1.new + C2.new +end |
