Skip to content

Commit

Permalink
Symbol#clone raises a TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jun 22, 2012
1 parent 1d655ab commit 3a8540a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion object.c
Expand Up @@ -264,7 +264,7 @@ static VALUE rb_class_s_alloc(VALUE, SEL);
static VALUE
rb_obj_clone_imp(VALUE obj, SEL sel)
{
if (rb_special_const_p(obj)) {
if (rb_special_const_p(obj) || TYPE(obj) == T_SYMBOL) {
rb_raise(rb_eTypeError, "can't clone %s", rb_obj_classname(obj));
}

Expand Down
1 change: 0 additions & 1 deletion spec/frozen/tags/macruby/core/object/clone_tags.txt

This file was deleted.

0 comments on commit 3a8540a

Please sign in to comment.