Skip to content

Fix Warning.#warn and Kernel.#warn signatures - #1056

Merged
pocke merged 3 commits into
ruby:masterfrom
kachick:warn
Jul 12, 2022
Merged

pocke merged 3 commits into
ruby:masterfrom
kachick:warn

Conversation

@kachick

@kachick kachick commented Jul 3, 2022

Copy link
Copy Markdown
Member

Since Ruby 3.0, Warning and Kernel.#warn can take optional category.
And current RBS Warning.#warn is defined only on instance. This PR aims to fix both.

Referenced followings

Warning.#warn accept only 1 String for message
Category names
deprecated | experimental | nil
Can't define different signatures in different RUBY_VERSIONS

@pocke
pocke merged commit af61480 into ruby:master Jul 12, 2022
@kachick

kachick commented Jul 12, 2022

Copy link
Copy Markdown
Member Author

Thank you!

@kachick
kachick deleted the warn branch July 12, 2022 04:23
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.

2 participants