Inspectopedia Help

Invalid method overload

Reports invalid method overloads (...). A method overload is only valid if there is exactly one other non-overloaded definition for the method.

A quick fix is available to remove the invalid method overload.

Example:

class Example # Cannot find a non-overloaded declaration for method 'call' of class 'Example' def call: -> untyped | ... end

After the quick fix:

class Example def call: -> untyped end

Inspection Details

Available in:

Qodana for Ruby 2023.3, RubyMine 2023.3

Plugin:

Ruby, 233.SNAPSHOT

Last modified: 13 July 2023