Skip to content

Commit 9d7a10d

Browse files
Fix 2 occurrences of consing-onto-static-list
This list-constructing expression can be simplified
1 parent f70fb04 commit 9d7a10d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typed-racket-lib/typed-racket/private/type-contract.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,8 @@
901901
[sc* (remove-duplicates sc*)]
902902
[sc* (remove-overlap sc*
903903
(list
904-
(cons vector?/sc (list mutable-vector?/sc immutable-vector?/sc))
905-
(cons hash?/sc (list mutable-hash?/sc weak-hash?/sc immutable-hash?/sc))))])
904+
(list vector?/sc mutable-vector?/sc immutable-vector?/sc)
905+
(list hash?/sc mutable-hash?/sc weak-hash?/sc immutable-hash?/sc)))])
906906
(apply shallow-or/sc sc*))]
907907
[t (t->sc t bound-all-vars)])]
908908
[(Intersection: ts raw-prop)

0 commit comments

Comments
 (0)