Use tail-position syntax property for non-functions.
svn: r16451 original commit: 6d70a48de13cbc2e54535c274144adb741d8aba1
This commit is contained in:
parent
2ca3a9176f
commit
a714f51138
|
@ -94,6 +94,9 @@
|
|||
[(#%plain-lambda () _)
|
||||
#:fail-unless (and expected (syntax-property e 'typechecker:called-in-tail-position)) #f
|
||||
(tc-expr/check e (ret (-> (tc-results->values expected))))]
|
||||
[_
|
||||
#:fail-unless (and expected (syntax-property e 'typechecker:called-in-tail-position)) #f
|
||||
(tc-expr/check e expected)]
|
||||
[_ (tc-expr e)]))
|
||||
|
||||
(define (tc/let-values namess exprs body form [expected #f])
|
||||
|
|
Loading…
Reference in New Issue
Block a user