summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/shared
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2021-07-20 13:53:22 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2021-07-21 10:06:33 -0700
commitb940a453572b5c3ed5c0951647929e14f5843a7d (patch)
tree41d75724ad08b32809de0f7723b31d34f7d13cd6 /spec/ruby/core/array/shared
parentfa308a683d507996ee68352753bbb1813dceff31 (diff)
Fix interpolated heredoc
This fixes https://bugs.ruby-lang.org/issues/18038. The provided reproduction showed that this happens in heredocs with double interpolation. In this case `DSTR` was getting returned but needs to be convered to a `EVSTR` which is what is returned by the function. There may be an additional bug here that we weren't able to produce. It seems odd that `STR` returns `DSTR` while everything else should return `EVSTR` since the function is `new_evstr`. [Bug #18038][ruby-core:104597] Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4664
Diffstat (limited to 'spec/ruby/core/array/shared')
0 files changed, 0 insertions, 0 deletions