File tree 2 files changed +17
-2
lines changed
tests/typed-racket/succeed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ #lang racket/load
2
+
3
+ (module m typed/racket
4
+ (struct: s ())
5
+
6
+ (struct: s2 s ())
7
+ (define: v : Any (s2))
8
+ (provide v))
9
+
10
+ (module n racket
11
+ (require 'm )
12
+ v)
13
+
14
+ (require 'n )
15
+
Original file line number Diff line number Diff line change 12
12
(define (wrap-struct s)
13
13
(define (extract-functions struct-type)
14
14
(define-values (sym init auto ref set! imms par skip?)
15
- (struct-type-info type))
15
+ (struct-type-info struct- type))
16
16
(when skip? (fail s)) ;; "Opaque struct type!")
17
17
(define-values (fun/chap-list _ )
18
18
(for/fold ([res null]
34
34
res)
35
35
imms))))
36
36
(cond
37
- [par (cons fun/chap-list (extract-functions par))]
37
+ [par (append fun/chap-list (extract-functions par))]
38
38
[else fun/chap-list]))
39
39
(define-values (type skipped?) (struct-info s))
40
40
(when skipped? (fail s)); "Opaque struct type!"
You can’t perform that action at this time.
0 commit comments