Skip to content

Fix InvalidOverloadMethodError message for singleton methods - #3264

Open
dak2 wants to merge 1 commit into
ruby:masterfrom
dak2:fix-singleton-overload-error-kind
Open

dak2 wants to merge 1 commit into
ruby:masterfrom
dak2:fix-singleton-overload-error-kind

Conversation

@dak2

@dak2 dak2 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

An invalid overload such as def self.foo: () -> void | ... was reported as ::Hello#foo because the error kind was hardcoded to :instance. The message pointed users to an instance method that doesn't exist.

An invalid overload such as `def self.foo: () -> void | ...` was reported
as `::Hello#foo` because the error kind was hardcoded to `:instance`.
The message pointed users to an instance method that doesn't exist.
@dak2
dak2 marked this pull request as ready for review October 28, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant