summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-04-07 18:45:26 -0700
committerJeremy Evans <code@jeremyevans.net>2019-08-30 12:39:31 -0700
commit9c2e165f7dbb63dd1921eacae58c4305d3e9e5b6 (patch)
tree16ea05751be006d7cb947fe3057effaad629a793 /spec/ruby/core
parente0b4599bba6bea744e0e90b7640dcc21d695c434 (diff)
Only promote last hash to keyword if all keys are symbols
If all keys are not symbols, then the non-symbol keys would not be treated as keywords in previous versions. It doesn't make sense to treat these hashes as keywords to break compatibility and warn about behavior changes in Ruby 2.7 when the Ruby 3.0 behavior will be the same as the Ruby 2.6 for these hashes.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2395
Diffstat (limited to 'spec/ruby/core')
0 files changed, 0 insertions, 0 deletions