Issue #5966 has been reported by Kazuki Tsujimoto.

----------------------------------------
Bug #5966: ->{} doesn't work in BasicObject
https://bugs.ruby-lang.org/issues/5966

Author: Kazuki Tsujimoto
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-02-03 trunk 34424) [x86_64-linux]


=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 `<main>'

I'm not sure it is a bug or not, but I think lambda syntax should work everywhere.
=end



-- 
http://bugs.ruby-lang.org/