Fix syntax error in ASL
Closes PR 10914 Merge to v5.0
This commit is contained in:
parent
f91836e311
commit
9fc5cbfa2c
|
@ -1904,6 +1904,8 @@
|
|||
(syntax/loc stx (define (name) expr))
|
||||
(list #'name))]
|
||||
[(_ (name) expr ...)
|
||||
(and (identifier/non-kw? (syntax name))
|
||||
(ok-definition-context))
|
||||
(check-single-result-expr (syntax->list (syntax (expr ...)))
|
||||
#f
|
||||
stx
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
(htdp-syntax-test #'(define x))
|
||||
(htdp-syntax-test #'(define x 10 12))
|
||||
(htdp-syntax-test #'(define (10 y) 12))
|
||||
(htdp-syntax-test #'(define (10) 12))
|
||||
(htdp-syntax-test #'(define ("x" y) 12))
|
||||
(htdp-syntax-test #'(define (y 10) 12))
|
||||
(htdp-syntax-test #'(define (y "x") 12))
|
||||
|
|
Loading…
Reference in New Issue
Block a user