mirror of
https://github.com/ruby/ruby.git
synced 2025-09-24 04:54:01 +02:00
Fixed not to make non-literal expression shareable [Feature #17273]
Non-literal expression which is not a part of a literal expression is not a subject of `shareable_literal_value: literal`.
This commit is contained in:
parent
6945597f6f
commit
19a98a8791
2 changed files with 11 additions and 8 deletions
|
@ -1189,6 +1189,7 @@ x = __ENCODING__
|
|||
B = [[2]]
|
||||
# shareable_constant_value: literal
|
||||
C = [["shareable", "constant#{nil}"]]
|
||||
D = A
|
||||
|
||||
[A, B, C]
|
||||
end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue