Skip to content

Instantly share code, notes, and snippets.

@kaikuchn
Last active July 7, 2017 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaikuchn/38c74ce62e11580d829f70b0f72b5365 to your computer and use it in GitHub Desktop.
Save kaikuchn/38c74ce62e11580d829f70b0f72b5365 to your computer and use it in GitHub Desktop.
message = <<~MSG
When interpolating a String longer than 23 bytes in a <<~
heredoc, we get a "can't set length of shared string" error.
So running #{__FILE__} should raise in MRI 2.4.1p111 Rev 58053.
The same is not true for <<- heredocs! It is also already fixed
in Ruby Trunk: https://bugs.ruby-lang.org/issues/13540
MSG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment