diff --git a/pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/base-env-numeric.rkt b/pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/base-env-numeric.rkt index 4483ade4..71a72f78 100644 --- a/pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/base-env-numeric.rkt +++ b/pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/base-env-numeric.rkt @@ -1649,7 +1649,7 @@ [angle (cl->* (-PosReal . -> . -Zero) (-FloatComplex . -> . -Flonum) (-InexactComplex . -> . -InexactReal) - (N . -> . -Real))] + (N . -> . (Un -InexactReal -Zero)))] [numerator (from-cases (map unop all-int-types) (-PosRat . -> . -PosInt) diff --git a/pkgs/typed-racket-pkgs/typed-racket-test/tests/typed-racket/unit-tests/typecheck-tests.rkt b/pkgs/typed-racket-pkgs/typed-racket-test/tests/typed-racket/unit-tests/typecheck-tests.rkt index 461a8fa5..a57b7010 100644 --- a/pkgs/typed-racket-pkgs/typed-racket-test/tests/typed-racket/unit-tests/typecheck-tests.rkt +++ b/pkgs/typed-racket-pkgs/typed-racket-test/tests/typed-racket/unit-tests/typecheck-tests.rkt @@ -288,7 +288,7 @@ (tc-e (flexpt -2.0 -0.5) -Flonum) ; NaN (tc-e (tanh (ann 0 Nonnegative-Integer)) -NonNegReal) (tc-e (sinh (ann 0 Nonpositive-Integer)) -NonPosReal) - (tc-e (angle -1) -Real) + (tc-e (angle -1) (t:Un -InexactReal -Zero)) (tc-e (angle 2.3) -Zero) (tc-e (magnitude 3/4) -PosRat) (tc-e (magnitude 3+2i) -NonNegReal)