Fix type for first argument of dynamic-place
Closes PR 14363
This commit is contained in:
parent
fe811e33aa
commit
315034bbe5
|
@ -1237,11 +1237,11 @@
|
|||
[place? (make-pred-ty -Place)]
|
||||
[place-channel? (make-pred-ty -Place-Channel)]
|
||||
;; FIXME: the `#:at` keyword is for remote places, not supported yet
|
||||
[dynamic-place (->key -Module-Path Sym
|
||||
[dynamic-place (->key (Un -Module-Path -Path) Sym
|
||||
#:at (-val #f) #f
|
||||
#:named (Un (-val #f) -Symbol) #f
|
||||
-Place)]
|
||||
[dynamic-place* (->key -Module-Path Sym
|
||||
[dynamic-place* (->key (Un -Module-Path -Path) Sym
|
||||
#:in (-opt -Input-Port) #f
|
||||
#:out (-opt -Output-Port) #f
|
||||
#:err (-opt -Output-Port) #f
|
||||
|
|
|
@ -1974,6 +1974,7 @@
|
|||
[tc-e (futures-enabled?) -Boolean]
|
||||
[tc-e (place-enabled?) -Boolean]
|
||||
[tc-e (dynamic-place "a.rkt" 'a #:at #f) -Place]
|
||||
[tc-e (dynamic-place (string->path "a.rkt") 'a #:at #f) -Place]
|
||||
[tc-e (let-values
|
||||
([(p _1 _2 _3)
|
||||
(dynamic-place* "a.rkt" 'a #:in (open-input-string "hi"))])
|
||||
|
|
Loading…
Reference in New Issue
Block a user