Actions
Bug #5966
closed->{} doesn't work in BasicObject
Description
=begin
$ ./ruby -ve 'BasicObject.new.instance_eval { ->{} }'
ruby 2.0.0dev (2012-02-03 trunk 34424) [x86_64-linux]
-e:1:in block in <main>': undefined method
lambda' for #BasicObject:0x007ffff847ef28 (NoMethodError)
from -e:1:in instance_eval' from -e:1:in
'
I'm not sure it is a bug or not, but I think lambda syntax should work everywhere.
=end
Files
Actions
Like0
Like0Like0Like0