diff options
-rw-r--r-- | ruby_parser.c | 1 | ||||
-rw-r--r-- | test/ruby/test_parse.rb | 27 |
2 files changed, 27 insertions, 1 deletions
@@ -1060,6 +1060,7 @@ rb_node_const_decl_val(const NODE *node) } else if (n && nd_type_p(n, NODE_COLON3)) { // ::Const::Name rb_ary_push(path, rb_str_new(0, 0)); } else { @@ -1537,12 +1537,37 @@ x = __ENCODING__ end def test_shareable_constant_value_unshareable_literal - assert_raise_separately(Ractor::IsolationError, /unshareable/, "#{<<~"begin;"}\n#{<<~'end;'}") begin; # shareable_constant_value: literal C = ["Not " + "shareable"] end; end def test_shareable_constant_value_nonliteral |