Backport #1723
closed
Added by zverok (Victor Shepelev) almost 15 years ago.
Updated about 13 years ago.
Description
=begin
class with respond_to? redefined¶
class A
def respond_to?(m); false end
end
x = [A.new]
deconstructing iteration¶
x.each do |a, b| p [a,b] end
It outputs [nil, nil], while [#<A:0xb5c9d0>, nil] is expected. If I comment out respond_to? in A, all works as expected
=end
- Category set to core
- Status changed from Open to Closed
=begin
Applied in changeset r23956.
=end
- Status changed from Closed to Assigned
- Assignee set to yugui (Yuki Sonoda)
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r24054.
=end
Also available in: Atom
PDF
Like0
Like0Like0Like0