Skip to content

Commit 4ce7087

Browse files
committed
Fix symbol in struct match bug.
1 parent 9c9794d commit 4ce7087

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

langs/neerdowell/compile-literals.rkt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
[(PBox p) (literals-pat p)]
9494
[(PCons p1 p2) (append (literals-pat p1) (literals-pat p2))]
9595
[(PAnd p1 p2) (append (literals-pat p1) (literals-pat p2))]
96+
[(PStruct t ps) (append-map literals-pat ps)]
9697
[_ '()]))
9798

9899
;; Datum -> [Listof (U Symbol String)]

langs/outlaw/compile-literals.rkt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
[(PCons p1 p2) (append (literals-pat p1) (literals-pat p2))]
9898
[(PAnd p1 p2) (append (literals-pat p1) (literals-pat p2))]
9999
[(PPred e) (literals-e e)]
100+
[(PStruct t ps) (append-map literals-pat ps)]
100101
[_ '()]))
101102

102103
;; Datum -> [Listof (U Symbol String)]

0 commit comments

Comments
 (0)