mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Show the class of the receiver [Feature #15231]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3a94b881b9
commit
973f84ef55
1 changed files with 2 additions and 1 deletions
3
object.c
3
object.c
|
@ -1686,7 +1686,8 @@ rb_false(VALUE obj)
|
|||
static VALUE
|
||||
rb_obj_match(VALUE obj1, VALUE obj2)
|
||||
{
|
||||
rb_warning("Object#=~ is deprecated; it always returns nil");
|
||||
rb_warning("deprecated Object#=~ is called on %"PRIsVALUE
|
||||
"; it always returns nil", rb_obj_class(obj1));
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue