summaryrefslogtreecommitdiff
path: root/KNOWNBUGS.rb
diff options
context:
space:
mode:
Diffstat (limited to 'KNOWNBUGS.rb')
-rw-r--r--KNOWNBUGS.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/KNOWNBUGS.rb b/KNOWNBUGS.rb
index 35a8e75876..b9ffabf212 100644
--- a/KNOWNBUGS.rb
+++ b/KNOWNBUGS.rb
@@ -5,3 +5,12 @@
# This test file includes tests which point out known bugs.
# So all tests will cause failure.
#
+
+assert_equal "ArgumentError", %{
+ def s(a) yield a; end
+ begin
+ s([1, 2], &lambda { |a,b| [a,b] })
+ rescue ArgumentError => e
+ e.class
+ end
+}