Fix typechecking of Single-Flonum-Complex literals.
Closes PR12840.
This commit is contained in:
parent
7191ef5c74
commit
442def0b0f
|
@ -69,7 +69,8 @@
|
||||||
-FloatComplex]
|
-FloatComplex]
|
||||||
[(~var i (3d (conjoin number? (lambda (x) (and (single-flonum? (imag-part x))
|
[(~var i (3d (conjoin number? (lambda (x) (and (single-flonum? (imag-part x))
|
||||||
(single-flonum? (real-part x)))))))
|
(single-flonum? (real-part x)))))))
|
||||||
-InexactComplex]
|
-SingleFlonumComplex]
|
||||||
|
;; can't have real and imaginary parts that are both inexact, but not the same precision
|
||||||
[(~var i (3d number?)) -Number] ; otherwise, Number
|
[(~var i (3d number?)) -Number] ; otherwise, Number
|
||||||
|
|
||||||
[i:str -String]
|
[i:str -String]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user