Revert type key change from 0a6537a6cbed7ca477d153

Sets are still treated as hash sets. Eventually
when we have a type for generic sets, it should have
a #f type key.

original commit: 570c58961ed1603733e2c5c7be3402db60e766b8
This commit is contained in:
Asumu Takikawa 2013-11-06 14:16:58 -05:00
parent c550151a02
commit 36ba652e5c
2 changed files with 9 additions and 1 deletions

View File

@ -182,7 +182,7 @@
;; elem is a Type
(def-type Set ([elem Type/c])
[#:key #f])
[#:key 'set])
;; result is a Type
(def-type Evt ([result Type/c])

View File

@ -1817,6 +1817,14 @@
(for: ([k : Symbol (in-set (set 'x 'y 'z))]) (displayln k))
(void))
-Void]
;; PR 14139
[tc-e
(let ()
(: f : (U (Setof Integer) Integer) (Setof Integer))
(define (f s) (if (set? s) s (set)))
(void))
-Void]
)
(test-suite
"tc-literal tests"