propagate srcloc to check-equal? form

This commit is contained in:
AlexKnauth 2016-03-10 10:15:24 -05:00
parent 5c5f500f39
commit f19eafcd8f

View File

@ -69,6 +69,7 @@
(define-syntax (check-type-and-result stx)
(syntax-parse stx #:datum-literals (: )
[(_ e : τ v)
#'(begin
#`(begin
(check-type e : τ)
(check-equal? e v))]))
#,(syntax/loc stx
(check-equal? e v)))]))