Attach struct info to constructor for polymorphic TR structs.
Closes PR 12806
This commit is contained in:
parent
b7b566aefc
commit
c2d9f7ed9a
12
collects/tests/typed-racket/succeed/pr12806.rkt
Normal file
12
collects/tests/typed-racket/succeed/pr12806.rkt
Normal file
|
@ -0,0 +1,12 @@
|
|||
#lang racket/load
|
||||
|
||||
(module a typed/racket
|
||||
(struct: (V) foo ((v : V)))
|
||||
(provide foo))
|
||||
|
||||
(module b racket
|
||||
(require 'a)
|
||||
|
||||
(foo 2))
|
||||
|
||||
(require 'b)
|
|
@ -240,6 +240,7 @@
|
|||
(mk/register-sty nm flds parent-name parent-field-types types
|
||||
#:maker maker
|
||||
#:mutable mutable
|
||||
#:struct-info (syntax-property nm/par 'struct-info)
|
||||
;; wrap everything in the approriate forall
|
||||
#:wrapper (λ (t) (make-Poly tvars t))
|
||||
#:type-wrapper (λ (t) (make-App t new-tvars #f))
|
||||
|
|
Loading…
Reference in New Issue
Block a user