Skip to content

Commit

Permalink
activesupport: Delete a dummy definition: Object#sum (#450)
Browse files Browse the repository at this point in the history
It seems this definition was added to avoid the trouble on `rbs
prototype rb` and refinements.  But it was gone away now because
`rbs prototype rb` command ignores refinements now.

refs: ruby/rbs#487
  • Loading branch information
tk0miya authored Oct 28, 2023
1 parent 55d4f26 commit 2de2d45
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions gems/activesupport/6.0/patch.rbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
class Object
# Object#sum is actually not defined, but rbs prototype rb generates it mistakenly due to `class << Benchmark`.
# So we need to define it to suppress the alias error.
def sum: () -> untyped
end

module ActiveSupport
class TestCase < ::Minitest::Test
# It is necessary to satisfy alias target.
Expand Down

0 comments on commit 2de2d45

Please sign in to comment.