Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiek committed Nov 22, 2024
1 parent d593d44 commit 9c18ee2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions type-check-Lvec.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
(debug 'type-equal? "lenient" t1 t2)
(match* (t1 t2)
[(`(Vector ,ts1 ...) `(Vector ,ts2 ...))
;; We can't require equal lengths because lambda closures
;; need vector subtyping. -Jeremy
;; We need to change the uses of type-equal? into subtyping
;; because the check for Vector types is not symmetric. -Jeremy
(and (>= (length ts1) (length ts2))
Expand Down

0 comments on commit 9c18ee2

Please sign in to comment.