Skip to content

Commit d97427f

Browse files
committed
Hopefully not unsound fix for the (Cons (λ ([x : Y]) x) Nil) bug.
1 parent 6247b62 commit d97427f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macrotypes/examples/mlish.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@
945945
#:with τ_out* (syntax-parse #'τ_out
946946
[(~?∀ (X ...) (~?∀ (Y ...) τ_out))
947947
(for ([X (in-list (syntax->list #'(X ...)))]
948-
#:when (stx-contains-id? #'Xs* X))
948+
#:when (stx-contains-id? #'Xs X)) ;; To cause an error, the X must be part of the original signature (I think?)
949949
(unless (covariant-X? X #'τ_out)
950950
(raise-app-poly-infer-error stx #'(τ_in ...) #'(τ_arg ...) #'e_fn)))
951951
#'(?∀ (X ... Y ...) τ_out)])

0 commit comments

Comments
 (0)