contract-stronger: swap order of cases
Check that the input to the default `contract-stronger?` is not an impersonator before calling `equal?` on it
This commit is contained in:
parent
ed5911e531
commit
c02d91d174
|
@ -118,9 +118,9 @@
|
|||
(define trail (make-parameter #f))
|
||||
(define (contract-struct-stronger? a b)
|
||||
(cond
|
||||
[(and (equal? a b)
|
||||
(or (flat-contract-struct? a)
|
||||
(chaperone-contract-struct? a)))
|
||||
[(and (or (flat-contract-struct? a)
|
||||
(chaperone-contract-struct? a))
|
||||
(equal? a b))
|
||||
#t]
|
||||
[else
|
||||
(define prop (contract-struct-property a))
|
||||
|
|
Loading…
Reference in New Issue
Block a user