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:
Nobuyoshi Nakada 2020-12-19 00:34:14 +09:00
parent 6945597f6f
commit 19a98a8791
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 11 additions and 8 deletions

View file

@ -1189,6 +1189,7 @@ x = __ENCODING__
B = [[2]]
# shareable_constant_value: literal
C = [["shareable", "constant#{nil}"]]
D = A
[A, B, C]
end;