Parameters can overlap with procedure types.
Closes PR 11993. original commit: d0fbe825e6d80e925a2d94412a701366e5844fcf
This commit is contained in:
parent
be4b0a9158
commit
ca2b4eaa42
7
collects/tests/typed-racket/succeed/parameter-proc.rkt
Normal file
7
collects/tests/typed-racket/succeed/parameter-proc.rkt
Normal file
|
@ -0,0 +1,7 @@
|
|||
#lang typed/racket
|
||||
(require/typed racket
|
||||
(current-directory (-> Path)))
|
||||
|
||||
(unless (equal? (parameter? current-directory)
|
||||
(if (parameter? current-directory) #t #f))
|
||||
(error 'unsound!))
|
|
@ -366,7 +366,7 @@
|
|||
;; in : Type
|
||||
;; out : Type
|
||||
(def-type Param ([in Type/c] [out Type/c])
|
||||
[#:key 'parameter]
|
||||
[#:key 'procedure]
|
||||
[#:frees (λ (f) (combine-frees (list (f out) (flip-variances (f in)))))])
|
||||
|
||||
;; key : Type
|
||||
|
|
Loading…
Reference in New Issue
Block a user