typed-racket icon indicating copy to clipboard operation
typed-racket copied to clipboard

(WIP) Use `define-deprecated-alias` for legacy aliases

Open jackfirth opened this issue 8 months ago • 2 comments

This is a (very) work-in-progress pull request to use the new define-deprecated-alias form to define the various aliases listed in Legacy Forms. This will allow Resyntax to automatically migrate users of these forms to their recommended replacements.

jackfirth avatar Jun 27 '25 05:06 jackfirth

@samth These test failures confound me. Any idea what's going on here?

--------------------
Typechecker tests > tc-expr tests > 652 (case-lambda: (((a : Number) (b : Number)) (+ a b)))
ERROR
location:   <pkgs>/typed-racket-test/unit-tests/typecheck-tests.rkt:652:8

typed-racket-test/unit-tests/typecheck-tests.rkt:652:35: type declaration: must be used in a definition context
  in: :
--------------------

jackfirth avatar Jun 28 '25 08:06 jackfirth

That's some of the most fragile code in TR. Is that test using the old alias or the new name?

samth avatar Jun 29 '25 13:06 samth