ruby-changes:60152
From: Nobuyoshi <ko1@a...>
Date: Sat, 22 Feb 2020 00:45:34 +0900 (JST)
Subject: [ruby-changes:60152] 5cab86f3b0 (master): `Proc` made by `Symbol#to_proc` should be a lambda [Bug #16260]
https://git.ruby-lang.org/ruby.git/commit/?id=5cab86f3b0 From 5cab86f3b0725457be3c50d3cab43b04bea53290 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 22 Feb 2020 00:30:55 +0900 Subject: `Proc` made by `Symbol#to_proc` should be a lambda [Bug #16260] diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 660f2e1..2e9710e 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -153,6 +153,10 @@ class TestSymbol < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_symbol.rb#L153 end; end + def test_to_proc_lambda? + assert_predicate(:itself.to_proc, :lambda?) + end + def test_to_proc_call_with_symbol_proc first = 1 bug11594 = "[ruby-core:71088] [Bug #11594] corrupted the first local variable" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/