diff options
-rw-r--r-- | object.c | 1 | ||||
-rw-r--r-- | test/ruby/test_object.rb | 4 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 6 insertions, 1 deletions
@@ -304,6 +304,7 @@ special_object_p(VALUE obj) switch (BUILTIN_TYPE(obj)) { case T_BIGNUM: case T_FLOAT: + case T_SYMBOL: return TRUE; default: return FALSE; diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index c1721de39c..7c1b98f76e 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -23,6 +23,8 @@ class TestObject < Test::Unit::TestCase assert_equal true, true.dup assert_equal nil, nil.dup assert_equal false, false.dup + x = :x; assert_equal x, x.dup + x = "bug13145".intern; assert_equal x, x.dup x = 1 << 64; assert_equal x, x.dup x = 1.72723e-77; assert_equal x, x.dup @@ -51,6 +53,8 @@ class TestObject < Test::Unit::TestCase assert_equal true, true.clone assert_equal nil, nil.clone assert_equal false, false.clone + x = :x; assert_equal x, x.dup + x = "bug13145".intern; assert_equal x, x.dup x = 1 << 64; assert_equal x, x.clone x = 1.72723e-77; assert_equal x, x.clone assert_raise(ArgumentError) {1.clone(freeze: false)} @@ -1,6 +1,6 @@ #define RUBY_VERSION "2.4.0" #define RUBY_RELEASE_DATE "2017-03-12" -#define RUBY_PATCHLEVEL 34 +#define RUBY_PATCHLEVEL 35 #define RUBY_RELEASE_YEAR 2017 #define RUBY_RELEASE_MONTH 3 |