summaryrefslogtreecommitdiff
path: root/spec/ruby/core/string/unpack/m_spec.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-04-29 15:31:41 -0400
committerKevin Newton <kddnewton@gmail.com>2024-05-01 12:34:29 -0400
commitcfe7019ef517804e0b36c5beeb520191d7eb9b52 (patch)
treea8d51ad7d9c7be4dbc6ec695115452ab4cb20c74 /spec/ruby/core/string/unpack/m_spec.rb
parentb6fa18fbe90c63b2979a4f1f8aecab1de4373664 (diff)
[ruby/prism] Match CRuby interpolation semantics
If a single string that is a static literal is interpolated, it does not impact whether or not the parent is a static literal. In this way, if you have something like a regular expression that interpolates a string literal, it's possible that you will end up pushing just a single regexp onto the stack as opposed to calling out to toregexp. https://github.com/ruby/prism/commit/4f096c2257
Diffstat (limited to 'spec/ruby/core/string/unpack/m_spec.rb')
0 files changed, 0 insertions, 0 deletions