Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False deprecation warning for overloaded constructor #2070

Open
jurgenvinju opened this issue Nov 5, 2024 · 0 comments
Open

False deprecation warning for overloaded constructor #2070

jurgenvinju opened this issue Nov 5, 2024 · 0 comments
Assignees

Comments

@jurgenvinju
Copy link
Member

Describe the bug

image image

To Reproduce

In rascal-lsp the util::LanguageServer module has this example where we

  1. moved an old constructor to an overloaded and @deprecated function that calls the new constructor (with the same name)
  2. added the new constructor to the data type.

The checker now produces deprecation warnings also when the new constructor is being used instead of the old function signature.

  • the overloads have the same arity
  • the overloads have an incomparable type for the third parameter: str vs set[str]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants