Skip to content

Commit 7f1c1ef

Browse files
committed
Simplify the constraints given to the coercion points
1 parent 934f81c commit 7f1c1ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

silly-k.scm

+3-3
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,9 @@
811811
`(overloaded ,[map (lambda (t1) `((,t0 ,(fresh-type-instance t1)))) t*] ...))
812812
(define (mk-coerce-constraint t0 t1)
813813
(let ([a (fresh-typevar)])
814-
`(overloaded (((lambda ,t0 ,t1) (lambda ,t0 ,t0)))
815-
(((lambda ,t0 ,t1) (lambda bool int)))
816-
(((lambda ,t0 ,t1) (lambda (vector bool) (vector int))))
814+
`(overloaded ((,t0 ,t1))
815+
((,t0 bool) (,t1 int))
816+
((,t0 (vector bool)) (,t1 (vector int)))
817817
((,t0 (vector ,a)) (,t1 (lambda int ,a)))
818818
((,t0 (vector ,a)) (,t1 (lambda (vector int) (vector ,a)))))))))
819819
(Expr : Expr (e cs) -> Expr (t cs)

0 commit comments

Comments
 (0)