Skip to content

Stop checking incompatibilities with Struct's kwargs in specs

Peter Leitzen requested to merge pl-ruby-32-struct-with-kwargs into master

What does this MR do and why?

We've switched to Ruby 3.2+ so this code works without keyword_init: true:

  X = Struct.new(:a)
  X.new(1)    # => #<struct X a=1>
  X.new(a: 1) # => #<struct X a=1>

This check is no longer necessary.

Partially reverts !165759 (merged).

Refs #498079

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Leitzen

Merge request reports

Loading