usethesource / rascal

The implementation of the Rascal meta-programming language (including interpreter, type checker, parser generator, compiler and JVM based run-time system)
http://www.rascal-mpl.org
Other
407 stars 77 forks source link

False deprecation warning for overloaded constructor #2070

Open jurgenvinju opened 2 weeks ago

jurgenvinju commented 2 weeks ago

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.