summaryrefslogtreecommitdiff
path: root/bootstraptest/test_exception.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_exception.rb')
-rw-r--r--bootstraptest/test_exception.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/bootstraptest/test_exception.rb b/bootstraptest/test_exception.rb
index f7d5eeaa07..b0d37234b8 100644
--- a/bootstraptest/test_exception.rb
+++ b/bootstraptest/test_exception.rb
@@ -414,3 +414,18 @@ assert_equal 'exception class/object expected', %q{
e.message
end
}, '[ruby-core:24767]'
+
+assert_equal 'ok', %q{
+ class C
+ def ===(o)
+ true
+ end
+ end
+ begin
+ begin
+ rescue C.new
+ end
+ rescue TypeError
+ :ok
+ end
+}