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:
parent
c550151a02
commit
36ba652e5c
|
@ -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])
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user