-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
Working with a subclass of Set, JRuby throws a warning from #initialize - minimal reproduction:
require 'set'
class ASet < Set
def initialize(&block)
super()
block[]
end
end
ASet.new { }test.rb:4: warning: given block not used. Doesn't seem to happen with a different superclass or method other than #initialize.
Environment Information
- jruby 9.4.12.0
- macos & ubuntu
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels