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 trail (make-parameter #f))
|
||||||
(define (contract-struct-stronger? a b)
|
(define (contract-struct-stronger? a b)
|
||||||
(cond
|
(cond
|
||||||
[(and (equal? a b)
|
[(and (or (flat-contract-struct? a)
|
||||||
(or (flat-contract-struct? a)
|
(chaperone-contract-struct? a))
|
||||||
(chaperone-contract-struct? a)))
|
(equal? a b))
|
||||||
#t]
|
#t]
|
||||||
[else
|
[else
|
||||||
(define prop (contract-struct-property a))
|
(define prop (contract-struct-property a))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user