Fix a typo in define-cstruct
This commit is contained in:
parent
84543217f9
commit
3a123ca85c
|
@ -72,12 +72,14 @@
|
|||
(syntax-test #'(define-cstruct x ()))
|
||||
(syntax-test #'(define-cstruct #f ()))
|
||||
(syntax-test #'(define-cstruct _y (y)))
|
||||
(syntax-test #'(define-cstruct _y () #:alignment))
|
||||
(syntax-test #'(define-cstruct _y () #:alignment 2 #:alignment 2))
|
||||
(syntax-test #'(define-cstruct _y () #:property))
|
||||
(syntax-test #'(define-cstruct _y () #:property x))
|
||||
(syntax-test #'(define-cstruct _y () #:property x y . 10))
|
||||
(syntax-test #'(define-cstruct _y () #:no-equal #:no-equal))
|
||||
(syntax-test #'(define-cstruct _y ([x _int]) #:alignment) #rx"missing expression for #:alignment")
|
||||
(syntax-test #'(define-cstruct _y ([x _int]) #:alignment 2 #:alignment 2) #rx"multiple specifications of #:alignment")
|
||||
(syntax-test #'(define-cstruct _y ([x _int]) #:malloc-mode) #rx"missing expression for #:malloc-mode")
|
||||
(syntax-test #'(define-cstruct _y ([x _int]) #:malloc-mode 'atomic #:malloc-mode 'atomic) #rx"multiple specifications of #:malloc-mode")
|
||||
(syntax-test #'(define-cstruct _y ([x _int]) #:property) #rx"missing property expression for #:property")
|
||||
(syntax-test #'(define-cstruct _y ([x _int]) #:property x) #rx"missing value expression for #:property")
|
||||
(syntax-test #'(define-cstruct _y ([x _int]) #:property x y . 10))
|
||||
(syntax-test #'(define-cstruct _y ([x _int]) #:no-equal #:no-equal) #rx"multiple specifications of #:no-equal")
|
||||
|
||||
;; ----------------------------------------
|
||||
;; Check struct properties and subtypes:
|
||||
|
|
|
@ -1627,7 +1627,7 @@
|
|||
[(#:malloc-mode m . rest)
|
||||
(not malloc-mode)
|
||||
(loop #'rest alignment #'m properties property-bindings no-equal?)]
|
||||
[(#:alignment m . rest)
|
||||
[(#:malloc-mode m . rest)
|
||||
(err "multiple specifications of #:malloc-mode" (head))]
|
||||
[(#:property) (err "missing property expression for #:property" (head))]
|
||||
[(#:property prop) (err "missing value expression for #:property" (head))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user