Project

General

Profile

Actions

Bug #6110

closed

#respond_to? returns true on 1.9.3 and false on ruby-head

Added by dkubb (Dan Kubb) about 12 years ago. Updated about 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-03-03 trunk 34887) [x86_64-darwin10.8.0]
Backport:
[ruby-core:43062]

Description

Under ruby-head, when calling #respond_to? on another object of the same type false is always returned, even though the method can be called. However, this returns true under ruby 1.9.3.

Attached is a test that reproduces the problem.


Files

test.rb (1.1 KB) test.rb dkubb (Dan Kubb), 03/03/2012 05:42 PM
Actions

Also available in: Atom PDF

Like0
Like0