Improve hash-table overlap.

Thanks to Alex Knauth for the code and Jordan Johnson for the test case.
This commit is contained in:
Sam Tobin-Hochstadt 2015-01-19 09:48:10 -05:00
parent 579d78aa88
commit 5ba9633e78
2 changed files with 7 additions and 0 deletions

View File

@ -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*)

View File

@ -0,0 +1,4 @@
#lang typed/racket/base
(require typed/json)
(: jsx JSExpr)
(define jsx #hasheq((a . "val1") (b . "val2") (c . "val3")))