Only use free-identifier=? when it's an identifier.
This commit is contained in:
parent
cf33d49c26
commit
8d810160f2
|
@ -542,11 +542,13 @@
|
||||||
(tc/rec-lambda/check form #'(args ...) #'body #'lp ts expected)
|
(tc/rec-lambda/check form #'(args ...) #'body #'lp ts expected)
|
||||||
(ret expected))]
|
(ret expected))]
|
||||||
[(#%plain-app or/andmap f arg)
|
[(#%plain-app or/andmap f arg)
|
||||||
(and (or (free-identifier=? #'or/andmap #'ormap)
|
(and
|
||||||
(free-identifier=? #'or/andmap #'andmap))
|
(identifier? #'or/andmap)
|
||||||
(with-handlers (#;[exn:fail? (lambda _ #f)])
|
(or (free-identifier=? #'or/andmap #'ormap)
|
||||||
(tc/dots #'arg)
|
(free-identifier=? #'or/andmap #'andmap))
|
||||||
#t))
|
(with-handlers (#;[exn:fail? (lambda _ #f)])
|
||||||
|
(tc/dots #'arg)
|
||||||
|
#t))
|
||||||
(let-values ([(ty bound) (tc/dots #'arg)])
|
(let-values ([(ty bound) (tc/dots #'arg)])
|
||||||
(parameterize ([current-tvars (extend-env (list bound)
|
(parameterize ([current-tvars (extend-env (list bound)
|
||||||
(list (make-DottedBoth (make-F bound)))
|
(list (make-DottedBoth (make-F bound)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user