Fix type of expt.
Add expt to random testing. Haven't seen one of those bugs in a while. Thank you Redex. Closes PR14823. original commit: 8b8130c38e211128f735a640f199213c80580f71
This commit is contained in:
parent
a4a2ccacc3
commit
dd7884fd49
|
@ -1880,7 +1880,7 @@
|
|||
(-PosRat -Int . -> . -PosRat)
|
||||
(-NonNegRat -Int . -> . -NonNegRat)
|
||||
(-Rat -Int . -> . -Rat)
|
||||
(-PosFlonum -Real . -> . -PosFlonum)
|
||||
(-PosFlonum (Un -PosReal -NegReal) . -> . -PosFlonum)
|
||||
(-PosReal -Flonum . -> . -PosFlonum)
|
||||
(-NonNegFlonum -Real . -> . -NonNegFlonum)
|
||||
(-NonNegReal -Flonum . -> . -NonNegFlonum)
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#lang typed/racket/base
|
||||
|
||||
(: f : Real → Real)
|
||||
(define (f x)
|
||||
(+ 1 (expt 1.0 x)))
|
||||
(f 0)
|
|
@ -141,6 +141,7 @@
|
|||
(sinh E*)
|
||||
(cosh E*)
|
||||
(tanh E*)
|
||||
(expt E* E*)
|
||||
])
|
||||
;; generated from: (map car (file->list "base-env-parts"))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user