Use the right equality function for parent-of?
This commit is contained in:
parent
a984281cdc
commit
f23c07f54a
|
@ -113,8 +113,9 @@
|
|||
;; if they are polymorphic)
|
||||
(define (parent-of? t1 t2)
|
||||
(match* (t1 t2)
|
||||
[((Struct: _ (Struct: pname _ _ _ _ _) _ _ _ _)
|
||||
(Struct: pname _ _ _ _ _))
|
||||
[((Struct: _ (Struct: pname1 _ _ _ _ _) _ _ _ _)
|
||||
(Struct: pname2 _ _ _ _ _))
|
||||
#:when (free-identifier=? pname1 pname2)
|
||||
#t]
|
||||
[((Struct: _ #f _ _ _ _)
|
||||
other)
|
||||
|
|
Loading…
Reference in New Issue
Block a user