Tell Typed Racket about the initial error continuation. (#1950)

Closes racket/typed-racket#660.
This commit is contained in:
Sam Tobin-Hochstadt 2018-02-10 17:38:08 -05:00 committed by GitHub
parent dd2a0dceb3
commit 9fe03ff6d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,9 @@
(syntax-property
(quasisyntax/loc stx
(let ([xs exprs*] ...)
(define (outer-fail) raise-error)
body))
(let ([outer-fail
#,(syntax-property
#'(λ () raise-error)
'typechecker:called-in-tail-position #t)])
body)))
'feature-profile:pattern-matching #t)])))