[前][次][番号順一覧][スレッド一覧]

ruby-changes:45119

From: nobu <ko1@a...>
Date: Mon, 26 Dec 2016 18:32:11 +0900 (JST)
Subject: [ruby-changes:45119] nobu:r57192 (trunk): [Bug #12705]

nobu	2016-12-26 18:32:07 +0900 (Mon, 26 Dec 2016)

  New Revision: 57192

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57192

  Log:
    [Bug #12705]

  Modified files:
    trunk/KNOWNBUGS.rb
Index: KNOWNBUGS.rb
===================================================================
--- KNOWNBUGS.rb	(revision 57191)
+++ KNOWNBUGS.rb	(revision 57192)
@@ -5,3 +5,12 @@ https://github.com/ruby/ruby/blob/trunk/KNOWNBUGS.rb#L5
 # 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
+}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]