Actions
Backport #3601
closedclass << self doesn't preserve the given block
Status:
Closed
Assignee:
Description
=begin
$ cat 191_bug.rb
def hello
class << self
yield
end
end
p hello { 123 }
Works in 1.8.7 and 1.9.2. Fails in 1.9.1 (and JRuby + Rubinius).
=end
Updated by judofyr (Magnus Holm) over 13 years ago
=begin
Please backport r27714: http://redmine.ruby-lang.org/repositories/revision/ruby-19?rev=27714
=end
Updated by shyouhei (Shyouhei Urabe) over 13 years ago
- Status changed from Open to Assigned
- Assignee set to yugui (Yuki Sonoda)
=begin
=end
Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
- Description updated (diff)
- Status changed from Assigned to Closed
Actions
Like0
Like0Like0Like0