Improve hash-table overlap.
Thanks to Alex Knauth for the code and Jordan Johnson for the test case.
This commit is contained in:
parent
579d78aa88
commit
5ba9633e78
|
@ -65,6 +65,9 @@
|
|||
[(list-no-order (Value: (? simple-datum?))
|
||||
(or (? Struct?) (? StructTop?) (? Function?)))
|
||||
#f]
|
||||
[(list-no-order (Value: (not (? hash?)))
|
||||
(or (? Hashtable?) (? HashtableTop?)))
|
||||
#f]
|
||||
[(list (Struct: n _ flds _ _ _)
|
||||
(Struct: n* _ flds* _ _ _))
|
||||
#:when (free-identifier=? n n*)
|
||||
|
|
4
typed-racket-test/succeed/json-hash.rkt
Normal file
4
typed-racket-test/succeed/json-hash.rkt
Normal file
|
@ -0,0 +1,4 @@
|
|||
#lang typed/racket/base
|
||||
(require typed/json)
|
||||
(: jsx JSExpr)
|
||||
(define jsx #hasheq((a . "val1") (b . "val2") (c . "val3")))
|
Loading…
Reference in New Issue
Block a user