summaryrefslogtreecommitdiff
path: root/basictest
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-06-10 17:50:35 -0700
committerJeremy Evans <code@jeremyevans.net>2020-06-11 07:30:48 -0700
commit2188d6d160d3ba82432c87277310a4d417e136d5 (patch)
treef885cb534dc38c06db3431076719436563f96fb9 /basictest
parent5349506eb4c0668fa1d6f512e4dae1021a9a7460 (diff)
Warn when passing a non-literal block to Kernel#lambda
Implements [Feature #15973]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3209
Diffstat (limited to 'basictest')
-rwxr-xr-xbasictest/test.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/basictest/test.rb b/basictest/test.rb
index 25a4298234..a2eb107bce 100755
--- a/basictest/test.rb
+++ b/basictest/test.rb
@@ -1425,9 +1425,6 @@ marity_test(:test_ok)
marity_test(:marity_test)
marity_test(:p)
-lambda(&method(:test_ok)).call(true)
-lambda(&block_get{|a,n| test_ok(a,n)}).call(true, 2)
-
class ITER_TEST1
def a
block_given?