Project

General

Profile

Actions

Bug #5966

closed

->{} doesn't work in BasicObject

Added by ktsj (Kazuki Tsujimoto) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 2.0.0dev (2012-02-03 trunk 34424) [x86_64-linux]
Backport:
[ruby-core:42349]

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

0001-Bug-5966-lambda-in-BasicObject.patch (2.42 KB) 0001-Bug-5966-lambda-in-BasicObject.patch nobu (Nobuyoshi Nakada), 02/11/2012 06:56 AM
Actions

Also available in: Atom PDF